This commit is contained in:
熊成强 2020-11-18 15:17:12 +08:00
parent d367ae32a9
commit 470f38fcd1
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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)