Browse Source

修改登录

zs 9 tháng trước cách đây
mục cha
commit
b95383eaba
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      src/components/Breadcrumb/index.vue
  2. 1 1
      src/layout/site.js

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

@@ -37,7 +37,7 @@ export default {
       const first = matched[0];
 
       if (!this.isDashboard(first)) {
-        matched = [{ path: '/homeIndex', redirect: '/homeIndex', name: 'HomeIndex', 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() === 'HomeIndex'.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/layout/site.js

@@ -69,7 +69,7 @@ export const menus = [
     id: 'menus_1',
     icon: 'el-icon-house',
     name: '系统首页',
-    path: '/homeIndex',
+    path: '/home',
     type: '0',
   },
   {