瀏覽代碼

修改左菜单全局赋值方式

Qukatie 1 周之前
父節點
當前提交
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);