From 9feec6a60f3e4bcc5c43394f7806dbae5f2df010 Mon Sep 17 00:00:00 2001 From: Xia Zekun Date: Thu, 30 May 2024 11:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=89=E9=92=89=E5=8D=95=E7=82=B9=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit a131b1fc650483d2266628d9b4bfb4d1461da46d) --- src/store/modules/user.js | 2 ++ src/views/user/Login.vue | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 51bc195..86764a8 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -166,6 +166,7 @@ const user = { if (code) { // 使用code调用后端hiwork登录的接口 dingLogin({ code }).then(response => { + console.log('dingLogin', response) if (response.code + '' === '200') { const result = response.result const userInfo = result.userInfo @@ -182,6 +183,7 @@ const user = { reject(response) } }).catch(error => { + console.log('dingLogin error', error) reject(error) }) } else { diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 02f0b60..8571137 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -46,11 +46,11 @@ export default { created () { console.log('created') // 尝试通过钉钉登录 - this.loginFromDingTalk() + // this.loginFromDingTalk() // 正常登录部分 - // this.getPublicKey() - // this.handleChangeCheckCode() + this.getPublicKey() + this.handleChangeCheckCode() }, methods: { ...mapActions(['Login']),