用户登录问题修改
This commit is contained in:
parent
7ffda168f5
commit
7e6ecd0dba
|
|
@ -8,7 +8,9 @@ import cache from '@/plugins/cache'
|
||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
import { encryptCBC, decryptCBC } from '@/utils/aescbc'
|
import { encryptCBC, decryptCBC } from '@/utils/aescbc'
|
||||||
import { hashWithSM3AndSalt } from '@/utils/sm'
|
import { hashWithSM3AndSalt } from '@/utils/sm'
|
||||||
const systemConfig = JSON.parse(localStorage.getItem('systemConfig'));
|
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
||||||
|
requestConfig: { encryptRequest: false, checkIntegrity: false, encryptResponse: false }
|
||||||
|
};
|
||||||
|
|
||||||
let downloadLoadingInstance
|
let downloadLoadingInstance
|
||||||
// 是否显示重新登录
|
// 是否显示重新登录
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,15 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
config() {
|
config() {
|
||||||
return JSON.parse(localStorage.getItem('systemConfig')); // 获取 JSON 对象
|
return JSON.parse(localStorage.getItem('systemConfig')) || {loginConfig:{
|
||||||
|
phonePassword: true,
|
||||||
|
emailPassword: true,
|
||||||
|
phoneCode: false,
|
||||||
|
emailCode: false
|
||||||
|
},registersConfig: {
|
||||||
|
phoneRegisters: true,
|
||||||
|
emailRegisters: true
|
||||||
|
}}; // 获取 JSON 对象
|
||||||
},
|
},
|
||||||
loginRules() {
|
loginRules() {
|
||||||
return this.loginMethod === 'password' ? this.passwordLoginRules : this.mobileLoginRules
|
return this.loginMethod === 'password' ? this.passwordLoginRules : this.mobileLoginRules
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,10 @@ export default {
|
||||||
return LOGIN
|
return LOGIN
|
||||||
},
|
},
|
||||||
config() {
|
config() {
|
||||||
return JSON.parse(localStorage.getItem('systemConfig')); // 获取 JSON 对象
|
return JSON.parse(localStorage.getItem('systemConfig')) || {registersConfig: {
|
||||||
|
phoneRegisters: true,
|
||||||
|
emailRegisters: true
|
||||||
|
}}; // 获取 JSON 对象
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue