钉钉单点测试

(cherry picked from commit a131b1fc650483d2266628d9b4bfb4d1461da46d)
This commit is contained in:
Xia Zekun
2024-09-06 17:24:13 +08:00
committed by mzaxd
parent 84f3e0c0a8
commit 9feec6a60f
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -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 {
+3 -3
View File
@@ -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']),