This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-09 16:02:36 +07:00
parent 671c7103ab
commit d5f0b562f9
2 changed files with 4 additions and 8 deletions

View file

@ -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>