Merge branch 'develop' of github.com:Frappet/hrms-mgt into develop
This commit is contained in:
commit
d2a2af53de
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue