refactor(系统设置): 扫码登录记住上一次登录方式

This commit is contained in:
guoyuqi 2024-09-13 11:47:30 +08:00 committed by 刘瑞斌
parent 45dc407345
commit 5b099a1694
1 changed files with 2 additions and 1 deletions

View File

@ -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';
}