Commit 05264b4a by Joey

feat(@rbc/rbc-login): 增加调试选项,允许重复登录

parent 85b80a7e
......@@ -117,7 +117,7 @@ export default {
titleColor: 'black',
Image: "",
imgLoading: 0,
checkLogin: true, // 默认当作已经登录了,因为已经登录的时候不能再进登录页
checkLogin: window.osConfig.isDevelop ? false : true, // 默认当作已经登录了,因为已经登录的时候不能再进登录页
userData: {
username: "",
password: "",
......@@ -161,12 +161,14 @@ export default {
this.getLoginAssetsInfo();
},
mounted() {
window.GMS.util.nvwa.checkLogin().then(() => {
this.checkLogin = true
this.$Message.error('您已登录,请先注销')
}).catch(() => {
this.checkLogin = false
})
if (!window.osConfig.isDevelop) {
window.GMS.util.nvwa.checkLogin().then(() => {
this.checkLogin = true
this.$Message.error('您已登录,请先注销')
}).catch(() => {
this.checkLogin = false
})
}
document.addEventListener('keyup', this.onKeyUp)
this.getVerificationCode();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment