เเก้ฟิลเตอร์ส่วนราชการ

This commit is contained in:
setthawutttty 2025-03-05 18:07:47 +07:00
parent 1a65afdebc
commit c27a4a1c19
2 changed files with 7 additions and 2 deletions

View file

@ -345,11 +345,14 @@ function clearSelect(t: string) {
*/
async function fetchTree() {
const data = await fetchStructureTree(route.meta.Key as string);
if (store.routerName !== route.name) {
store.formFilter.node = null;
store.formFilter.nodeId = null;
store.routerName = route.name ? route.name : "";
}
if (data) {
isLoad.value = true;
node.value = data;
store.formFilter.node = nodeData.node;
store.formFilter.nodeId = nodeData.nodeId;
}
}