钉钉单点测试
(cherry picked from commit a131b1fc650483d2266628d9b4bfb4d1461da46d)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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']),
|
||||
|
||||
Reference in New Issue
Block a user