This commit is contained in:
熊成强 2020-11-06 18:09:07 +08:00
parent db0ba8db85
commit 13ba59b808

View File

@ -26,7 +26,6 @@ export default {
...mapState(['user']) ...mapState(['user'])
}, },
async created () { async created () {
console.log('dd: ', dd)
if (!dd.other) { if (!dd.other) {
await this.handleGetDingtalkCode() await this.handleGetDingtalkCode()
await this.handleDingtalkLogin() await this.handleDingtalkLogin()
@ -66,7 +65,7 @@ export default {
this.$cookies.set('token', res.token) this.$cookies.set('token', res.token)
await this.handleInfo() await this.handleInfo()
this.dataForm.verify = '登录成功,跳转中...' this.dataForm.verify = '登录成功,跳转中...'
window.open(window.location.protocol + '//' + window.location.host + '/digitization/kpi/workbench/home?code=' + this.dingCode.code) // window.open(window.location.protocol + '//' + window.location.host + '/digitization/kpi/workbench/home?code=' + this.dingCode.code)
} else { } else {
this.dataForm.verify = '身份验证失败' + res.msg this.dataForm.verify = '身份验证失败' + res.msg
this.$message.error(this.dataForm.verify) this.$message.error(this.dataForm.verify)