Skip to content

Commit a3f1270

Browse files
author
zhaoxiang
committed
modified 修复初始菜单生成
1 parent 51c943f commit a3f1270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/module/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
},
3535
getters: {
3636
menuList: (state, getters, rootState) => {
37-
if (state.menuList === []) {
37+
if (state.menuList.length > 0) {
3838
return getMenuByRouter(state.menuList, rootState.user.userInfo.access)
3939
} else {
4040
return getMenuByRouter(routes, rootState.user.userInfo.access)

0 commit comments

Comments
 (0)