优化
This commit is contained in:
parent
744f6e5bc4
commit
036a775272
@ -15,7 +15,9 @@ export default {
|
||||
active: true,
|
||||
fullPage: true,
|
||||
dingCode: '',
|
||||
dataForm: {}
|
||||
dataForm: {
|
||||
verify: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -59,7 +61,7 @@ export default {
|
||||
// 钉钉免登录
|
||||
async handleDingtalkLogin (val = this.dingCode) {
|
||||
const res = await apiDingtalkLogin(val)
|
||||
console.log('res: ', res)
|
||||
console.log('钉钉免登录res: ', res)
|
||||
if (res && res.code === 200) {
|
||||
this.$cookies.set('token', res.token)
|
||||
await this.handleInfo()
|
||||
@ -74,6 +76,7 @@ export default {
|
||||
// 获取用户信息
|
||||
async handleInfo () {
|
||||
let res = await apiUserInfo()
|
||||
console.log('获取用户信息res: ', res)
|
||||
if (res.code === 200) {
|
||||
this.SET_USER_INFO(res.user)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user