钉钉登录测试

(cherry picked from commit eeb17857a168bcd04c1e0483ed0606c52d85fcfb)
This commit is contained in:
Xia Zekun
2024-09-06 17:23:02 +08:00
committed by mzaxd
parent 5e94639a8d
commit aaa031b84f
+4 -2
View File
@@ -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