From a758bc277ff4d1f8ede96a03cbbc10b96176be82 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 21 七月 2023 15:28:36 +0800 Subject: [PATCH] 路由配置 --- Source/UBCS-WEB/src/components/Master/MasterTree.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue index 91a11fe..7a44f87 100644 --- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue +++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue @@ -70,14 +70,15 @@ }, created() { this.getTreeLists() - }, computed:{ }, methods:{ //鑾峰彇鏁版嵁 getTreeLists(){ - getTreeList({'conditionMap[id]': 'wupin'}).then(res=>{ + const fullPath = this.$route.fullPath + const queryString = fullPath.split('?')[1]; + getTreeList({'conditionMap[id]': queryString}).then(res=>{ this.Treedata=res.data this.ModifyProperties(this.Treedata, 'text', 'label'); this.codeClassifyOid=res.data[0].oid; -- Gitblit v1.9.3