优化
This commit is contained in:
parent
d367ae32a9
commit
470f38fcd1
@ -26,7 +26,7 @@ const user = {
|
||||
let res = await apiUserInfo()
|
||||
if (res.code === 200) {
|
||||
commit('SET_USER_INFO', res.user)
|
||||
commit('SET_USER_INFO', res.data)
|
||||
commit('SET_USER_AUTH', res.data)
|
||||
return 1
|
||||
} else {
|
||||
this.$message.error(res.msg0)
|
||||
|
||||
@ -10,6 +10,7 @@ async function handleDingtalkLogin (val) {
|
||||
const res = await apiDingtalkLogin(val)
|
||||
console.log('钉钉免登录res: ', res)
|
||||
if (res && res.code === 200) {
|
||||
console.log('res.token: ', res.token)
|
||||
this.$cookies.set('token', res.token)
|
||||
return 1
|
||||
// window.open(window.location.protocol + '//' + window.location.host + '/digitization/kpi/workbench/home?code=' + this.dingCode.code)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user