dedsudiyu %!s(int64=2) %!d(string=hai) anos
pai
achega
8e706d0d9c
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      src/components/TopNav/index.vue

+ 7 - 2
src/components/TopNav/index.vue

@@ -144,7 +144,10 @@ export default {
       for(let i=0;i<self.topMenus.length;i++){
         if(matched[0]){
           if(matched[0].path == self.topMenus[i].path){
-            store.dispatch('settings/setPageName', matched[0].meta.title)
+            if(matched[0].meta.title != '数据可视化'){
+              // console.log('matched[0].meta.title',matched[0].meta.title);
+              store.dispatch('settings/setPageName', matched[0].meta.title)
+            }
           }
         }
       }
@@ -155,7 +158,9 @@ export default {
       let self = this;
       for(let i=0;i<self.topMenus.length;i++){
         if(key == self.topMenus[i].path){
-          store.dispatch('settings/setPageName', self.topMenus[i].meta.title)
+          if(self.topMenus[i].meta.title != '数据可视化'){
+            store.dispatch('settings/setPageName', self.topMenus[i].meta.title)
+          }
         }
       }
       this.currentIndex = key;