chore: 更新注释信息

This commit is contained in:
dap
2024-10-18 15:02:39 +08:00
parent 8788d2eeab
commit 162b3207fd
3 changed files with 12 additions and 4 deletions

View File

@@ -75,6 +75,7 @@ export const useNotifyStore = defineStore(
userId: userId.value,
});
// 需要手动置空 vue3在值相同时不会触发watch
data.value = null;
});
}

View File

@@ -7,11 +7,17 @@ import {
type TenantOption,
} from '#/api/core/auth';
/**
* 用于超级管理员切换租户
*/
export const useTenantStore = defineStore('app-tenant', () => {
// 是否已经选中租户
const checked = ref(false);
// 是否开启租户功能
const tenantEnable = ref(true);
const tenantList = ref<TenantOption[]>([]);
// 初始化 获取租户信息
async function initTenant() {
const { tenantEnabled, voList } = await tenantListApi();
tenantEnable.value = tenantEnabled;