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', () => {