Browse Source

首页快速发起

caojunjie 1 năm trước cách đây
mục cha
commit
c348f94853
1 tập tin đã thay đổi với 13 bổ sung10 xóa
  1. 13 10
      src/views/wel/components/quick-launch.vue

+ 13 - 10
src/views/wel/components/quick-launch.vue

@@ -249,16 +249,19 @@ export default {
   },
   created() {
     this.tenantNumber = JSON.parse(localStorage.getItem('saber-tenantId')).content
-    //从缓存中获取所有路由信息
-    this.$nextTick(data => {
-      let menu = JSON.parse(localStorage.getItem("saber-menuAll")).content
-      for (let item of menu){
-        this.menuAll.push(item.id)
-        if (item.children.length > 0){
-          this.getMenuId(item.children)
-        }
-      }
-    })
+      //从缓存中获取所有路由信息
+      setTimeout(data=>{
+          let menu = JSON.parse(localStorage.getItem("saber-menuAll")).content
+          for (let item of menu){
+              this.menuAll.push(item.id)
+              if (item.children.length > 0){
+                  this.getMenuId(item.children)
+              }
+          }
+      },600)
+    // this.$nextTick(data => {
+    //
+    // })
     if (this.sysType == 2) {
       this.getWorkDicts('large_screen').then(res => {
         this.largeScreenToken = res.data.data[0].dictKey;