|
@@ -17,7 +17,8 @@ export const useAuthStore = defineStore('auth', {
|
|
|
current:[],
|
|
|
tableConfigs:{},
|
|
|
hiddenSensitiveFields:false,
|
|
|
- fieldsParam:{}
|
|
|
+ fieldsParam:{},
|
|
|
+ qrCordBaseUrl:'',//二维码基本地址
|
|
|
}
|
|
|
},
|
|
|
// 开启数据缓存
|
|
@@ -26,7 +27,7 @@ export const useAuthStore = defineStore('auth', {
|
|
|
strategies: [
|
|
|
{
|
|
|
storage: localStorage,
|
|
|
- paths: ['system', 'mods','app','accountList','nowAccount','actSystem','current','tableConfigs','hiddenSensitiveFields']
|
|
|
+ paths: ['system', 'mods','app','accountList','nowAccount','actSystem','current','tableConfigs','hiddenSensitiveFields','qrCordBaseUrl']
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -127,7 +128,16 @@ export const useAuthStore = defineStore('auth', {
|
|
|
* 设置默认账号
|
|
|
*/
|
|
|
async defaultAccount (account,fn) {
|
|
|
-
|
|
|
+ switch (account.siteid) {
|
|
|
+ case 'cucu':
|
|
|
+ this.qrCordBaseUrl = 'https://lsa.cnyunl.com/'
|
|
|
+ break;
|
|
|
+ case 'CCYOSG':
|
|
|
+ this.qrCordBaseUrl = 'https://www.jiushengboard.cc/'
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
account ? this.nowAccount = account : this.nowAccount
|
|
|
|
|
|
sessionStorage.setItem('token',this.nowAccount.token)
|