|
@@ -19,13 +19,14 @@ export default {
|
|
|
getters: {
|
|
|
sidebarClosed: state => state.sidebarClosed,
|
|
|
sidebarSelected: state => {
|
|
|
- if (!state.pageSidebarSelected) {
|
|
|
- let menu = storage.get(KEY_MENU_SELECTED)
|
|
|
- if (menu) {
|
|
|
- state.pageSidebarSelected = menu
|
|
|
- }
|
|
|
- }
|
|
|
- return state.pageSidebarSelected
|
|
|
+ // if (!state.pageSidebarSelected) {
|
|
|
+ // let menu = storage.get(KEY_MENU_SELECTED)
|
|
|
+ // if (menu) {
|
|
|
+ // state.pageSidebarSelected = menu
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return state.pageSidebarSelected
|
|
|
+ return state.sidebarSelected
|
|
|
},
|
|
|
userInfo: state => state.userInfo,
|
|
|
permissions: state => state.permissions,
|
|
@@ -64,7 +65,7 @@ export default {
|
|
|
loadUserInfo({ state }) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
frameworkApi.loadUserInfo().then(resp => {
|
|
|
- console.log('api load user info ', resp)
|
|
|
+ // console.log('api load user info ', resp)
|
|
|
if (resp.result == 'success') {
|
|
|
state.userInfo = { username: resp.username }
|
|
|
state.permissions = {}
|