jwg 8 months ago
parent 93ef3ffb6a
commit 11204442dd

@ -65,7 +65,8 @@
<van-button <van-button
type="primary" type="primary"
@click="handleWxLogin" @click="handleWxLogin"
style="left: 50%; transform: translateX(-50%)" :class="{ mtop: !firstLogin }"
style="left: 50%; transform: translateX(-50%); width: 90%"
>企业微信登录</van-button >企业微信登录</van-button
> >
<!-- 图形验证码 --> <!-- 图形验证码 -->
@ -113,8 +114,8 @@ export default {
...mapGetters(['devSystemList', 'devUserList']), ...mapGetters(['devSystemList', 'devUserList']),
}, },
created() { created() {
// //
isProhibited().then((res) => { /* isProhibited().then((res) => {
if (res.data) { if (res.data) {
console.log(res.data, 'isProhibited') console.log(res.data, 'isProhibited')
if (/wxwork/i.test(navigator.userAgent)) { if (/wxwork/i.test(navigator.userAgent)) {
@ -128,7 +129,7 @@ export default {
return return
} }
} }
}) }) */
// //
// this.tenantEnable = getTenantEnable(); // this.tenantEnable = getTenantEnable();
// if (this.tenantEnable) { // if (this.tenantEnable) {
@ -202,13 +203,6 @@ export default {
}).then((res) => { }).then((res) => {
// URL // URL
window.location.href = res.data window.location.href = res.data
/* this.$nextTick(() => {
Toast.loading({
duration: 3, // toast
forbidClick: true,
message: res.data + ,
})
}) */
}) })
}, },
// //
@ -290,6 +284,7 @@ export default {
} }
window.localStorage.setItem('loginInfo', JSON.stringify(obj)) window.localStorage.setItem('loginInfo', JSON.stringify(obj))
} }
this.firstLogin = false
// //
if (window.location.href.includes('code')) { if (window.location.href.includes('code')) {
userBind({ code: this.code, state: this.state, type: 40 }) userBind({ code: this.code, state: this.state, type: 40 })
@ -326,4 +321,7 @@ export default {
.oo { .oo {
text-align: left; text-align: left;
} }
.mtop {
margin-top: 15vh;
}
</style> </style>

Loading…
Cancel
Save