钉钉单点测试
(cherry picked from commit a131b1fc650483d2266628d9b4bfb4d1461da46d)
This commit is contained in:
@@ -166,6 +166,7 @@ const user = {
|
|||||||
if (code) {
|
if (code) {
|
||||||
// 使用code调用后端hiwork登录的接口
|
// 使用code调用后端hiwork登录的接口
|
||||||
dingLogin({ code }).then(response => {
|
dingLogin({ code }).then(response => {
|
||||||
|
console.log('dingLogin', response)
|
||||||
if (response.code + '' === '200') {
|
if (response.code + '' === '200') {
|
||||||
const result = response.result
|
const result = response.result
|
||||||
const userInfo = result.userInfo
|
const userInfo = result.userInfo
|
||||||
@@ -182,6 +183,7 @@ const user = {
|
|||||||
reject(response)
|
reject(response)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
console.log('dingLogin error', error)
|
||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -46,11 +46,11 @@ export default {
|
|||||||
created () {
|
created () {
|
||||||
console.log('created')
|
console.log('created')
|
||||||
// 尝试通过钉钉登录
|
// 尝试通过钉钉登录
|
||||||
this.loginFromDingTalk()
|
// this.loginFromDingTalk()
|
||||||
|
|
||||||
// 正常登录部分
|
// 正常登录部分
|
||||||
// this.getPublicKey()
|
this.getPublicKey()
|
||||||
// this.handleChangeCheckCode()
|
this.handleChangeCheckCode()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['Login']),
|
...mapActions(['Login']),
|
||||||
|
|||||||
Reference in New Issue
Block a user