chc 1 年之前
父节点
当前提交
d9e8366cfd
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/views/map/toolBox.vue

+ 8 - 8
src/views/map/toolBox.vue

@@ -462,14 +462,14 @@ export default defineComponent({
   },
 
   mounted() {
-    // getMenuList().then(res => {
-    //   // menuList
-    //   this.menuList = res
-    // })
-    // let userInfo = getAuthCache(USER_INFO_KEY);
-    // getMenusIdsByRoleId(userInfo.plainRoles[0].roleId).then(res => {
-    //   this.menuIds = res
-    // })
+    getMenuList().then(res => {
+      // menuList
+      this.menuList = res
+    })
+    let userInfo = getAuthCache(USER_INFO_KEY);
+    getMenusIdsByRoleId(userInfo.plainRoles[0].roleId).then(res => {
+      this.menuIds = res
+    })
     // await getMenuList()
     // eventBus.on('mapConfig', (e) => this.stageLayer(e));
     eventBus.on('doubleScreenControl', () => {