Skip to content
Snippets Groups Projects
Commit bf2cbc83 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

use onMounted :(

parent aa6753f2
No related branches found
No related tags found
1 merge request!226Resolve "Design of the structure section in a system's page"
Pipeline #126753 waiting for manual action with stages
in 5 minutes and 53 seconds
...@@ -30,6 +30,26 @@ const margin = ref<PlotMargin>({ ...@@ -30,6 +30,26 @@ const margin = ref<PlotMargin>({
marginLeft: 150 marginLeft: 150
}) })
onMounted(async () => {
const { data: d, error } = await useAsyncMeiliSearch({
index: toValue(dbName), query: "", params: {
facets: ["*"],
filter: [
`System='${toValue(computedSystem)}'`,
...toValue(filterBase)
],
}
})
data.value = d.value
if (error.value) {
throw createError("Error while getting structure pdocks")
}
})
const computedSystem = computed(() => { const computedSystem = computed(() => {
const toValPage = toValue(page) const toValPage = toValue(page)
const toValSystem = toValue(system) const toValSystem = toValue(system)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment