zhaobao 3 лет назад
Родитель
Сommit
f4ceced93d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/layout/components/Navbar.vue

+ 1 - 1
src/layout/components/Navbar.vue

@@ -141,7 +141,7 @@ export default {
         index = parseFloat(localStorage.getItem('ehpt_tabIndex'))
       }
       this.sideTabChange(index, {
-        path: this.$route.fullPath
+        path: this.sideMenuTabList.filter(item => item.id === index)[0].path
       })
     },
     toggleSideBar() {