sc
This commit is contained in:
@@ -15,8 +15,10 @@ export const useTenantStore = defineStore('tenant', () => {
|
||||
};
|
||||
|
||||
const getTenant = () => {
|
||||
// 按照顺序获取tenantId:1. storage 2. config
|
||||
const tenantId = storage.get(constant.tenantId) || config.appInfo.tenantId;
|
||||
return new Promise(resolve => {
|
||||
getTenantInfo({ id: config.appInfo.tenantId }).then(res => {
|
||||
getTenantInfo({ id: tenantId }).then(res => {
|
||||
if (!isEmpty(res.data)) {
|
||||
SET_TENANT_INFO(res.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user