Browse Source

修改左菜单全局赋值方式

Qukatie 1 week ago
parent
commit
0fdb627bfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store/modules/user.js

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

@@ -48,7 +48,7 @@ function addPath(ele, first) {
   const isChild = ele[propsDefault.children] && ele[propsDefault.children].length !== 0;
   if (!isChild) ele[propsDefault.children] = [];
   if (!isChild && first && !isURL(ele[propsDefault.path])) {
-    ele[propsDefault.path] = ele[propsDefault.path] + '/index'
+    ele[propsDefault.path] = ele[propsDefault.path] 
   } else {
     ele[propsDefault.children].forEach(child => {
       addPath(child);