钉钉登录测试
(cherry picked from commit eeb17857a168bcd04c1e0483ed0606c52d85fcfb)
This commit is contained in:
@@ -44,17 +44,19 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
console.log('created')
|
||||
// 尝试通过钉钉登录
|
||||
this.loginFromDingTalk()
|
||||
|
||||
// 正常登录部分
|
||||
this.getPublicKey()
|
||||
this.handleChangeCheckCode()
|
||||
// this.getPublicKey()
|
||||
// this.handleChangeCheckCode()
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['Login']),
|
||||
// 尝试通过钉钉登录
|
||||
loginFromDingTalk () {
|
||||
console.log('尝试通过钉钉登录')
|
||||
if (dd.env.platform === 'notInDingTalk') {
|
||||
console.log('请在钉钉内打开')
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user