zs 9 mēneši atpakaļ
vecāks
revīzija
c7ce337161
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 2
      src/components/Breadcrumb/index.vue
  2. 1 1
      src/store/user/mutations.js

+ 2 - 2
src/components/Breadcrumb/index.vue

@@ -37,7 +37,7 @@ export default {
       const first = matched[0];
 
       if (!this.isDashboard(first)) {
-        matched = [{ path: '/home', redirect: '/home', name: 'Home', meta: { title: '系统首页' } }].concat(matched);
+        matched = [{ path: '/home', redirect: '/home', name: 'home', meta: { title: '系统首页' } }].concat(matched);
       }
 
       this.levelList = matched.filter((item) => item.meta && item.meta.title && item.meta.breadcrumb !== false);
@@ -47,7 +47,7 @@ export default {
       if (!name) {
         return false;
       }
-      return name.trim().toLocaleLowerCase() === 'Home'.toLocaleLowerCase();
+      return name.trim().toLocaleLowerCase() === 'home'.toLocaleLowerCase();
     },
     pathCompile(path) {
       // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561

+ 1 - 1
src/store/user/mutations.js

@@ -8,7 +8,7 @@ export const deleteUser = (state, payload) => {
 };
 
 export const setMenus = (state, payload) => {
-  menus.state = payload;
+  state.menus = payload;
 };
 
 export const tokenView = async (token) => {