优化
This commit is contained in:
parent
164daf9bf3
commit
e112f6891f
@ -47,14 +47,11 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
const a = await this.GET_DEPLIST()
|
||||
console.log('a: ', a)
|
||||
},
|
||||
methods: {
|
||||
onCancel () {
|
||||
|
||||
},
|
||||
...mapActions(['GET_DEPLIST']),
|
||||
...mapMutations(['SET_USER_INFO']),
|
||||
// 获取钉钉鉴权码
|
||||
handleGetDingtalkCode () {
|
||||
|
||||
@ -45,6 +45,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
if (res === 1) {
|
||||
console.log('res: ', res)
|
||||
let res1 = await store.dispatch('GET_USERINFO')
|
||||
await store.dispatch('GET_DEPLIST')
|
||||
console.log('res1: ', res1)
|
||||
if (res1 === 1) next()
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user