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']),