refactor(系统设置): 扫码登录记住上一次登录方式
This commit is contained in:
parent
45dc407345
commit
5b099a1694
|
@ -242,6 +242,7 @@ export default {
|
|||
}
|
||||
},
|
||||
submit(form) {
|
||||
localStorage.setItem('loginType', 'PASSWORD');
|
||||
this.$refs[form].validate((valid) => {
|
||||
if (valid) {
|
||||
this.doLogin();
|
||||
|
@ -418,7 +419,7 @@ export default {
|
|||
async initPlatformInfo() {
|
||||
try {
|
||||
await getPlatformParamUrl().then((res) => {
|
||||
if (localStorage.getItem('loginType')) {
|
||||
if (localStorage.getItem('loginType') && localStorage.getItem('loginType') !== 'PASSWORD') {
|
||||
this.showQrCodeTab = true;
|
||||
this.activeName = localStorage.getItem('loginType') || 'WE_COM';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue