fix
This commit is contained in:
parent
671c7103ab
commit
d5f0b562f9
2 changed files with 4 additions and 8 deletions
|
|
@ -247,7 +247,6 @@ function close() {
|
|||
|
||||
async function getDataTable(id: string, level: number = 0) {
|
||||
showLoader();
|
||||
|
||||
const body = {
|
||||
node: level,
|
||||
nodeId: id,
|
||||
|
|
@ -343,7 +342,7 @@ function updateSelected(data: DataTree) {
|
|||
|
||||
/** ดึงข้อมูล active */
|
||||
async function fetchTree() {
|
||||
const dataTree = await fetchStructureTree(route.meta.Key as string, true);
|
||||
const dataTree = await fetchStructureTree(route.meta.Key as string);
|
||||
if (dataTree) {
|
||||
formActive.activeId = storeTree.activeId;
|
||||
nodes.value = dataTree;
|
||||
|
|
@ -512,8 +511,8 @@ function onSubmit() {
|
|||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fetchTree();
|
||||
onMounted(async () => {
|
||||
await fetchTree();
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue