We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c943f commit a3f1270Copy full SHA for a3f1270
src/store/module/app.js
@@ -34,7 +34,7 @@ export default {
34
},
35
getters: {
36
menuList: (state, getters, rootState) => {
37
- if (state.menuList === []) {
+ if (state.menuList.length > 0) {
38
return getMenuByRouter(state.menuList, rootState.user.userInfo.access)
39
} else {
40
return getMenuByRouter(routes, rootState.user.userInfo.access)
0 commit comments