소스 검색

修改左菜单全局赋值方式

Qukatie 2 주 전
부모
커밋
0fdb627bfa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);