Skip to content

Commit

Permalink
user
Browse files Browse the repository at this point in the history
  • Loading branch information
beclass committed Nov 7, 2019
1 parent 7ffcd7a commit 565d8a0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
用户1:admin
密码:111111
用户2:gust
用户2:guest
密码:111111
```
Expand Down
1 change: 0 additions & 1 deletion src/store/module/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default {
},
updateMenuList (state, routes) {
// 接受前台数组,刷新菜单
console.log('来啊')
router.addRoutes(routes)
state.menuList = routes
},
Expand Down
2 changes: 0 additions & 2 deletions src/store/module/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
restoreTrash
} from '@/api/user'
import { setToken, localSave } from '@/libs/util'
import store from '@/store'
import { initRouter } from '@/libs/router-util' // 引入动态菜单渲染

export default {
Expand Down Expand Up @@ -81,7 +80,6 @@ export default {
commit('setAccess', [])
localSave('dynamicRouter', []) // 清空本地路由
localSave('tagNaveList', []) // 清空localStorage中的tagNaveList记录
store.commit('updateMenuList', [])
},
// 获取用户相关信息
async getUserInfo ({ state, commit }) {
Expand Down

0 comments on commit 565d8a0

Please sign in to comment.