update 优化 getTenantList 接口动态决定是否传token

This commit is contained in:
疯狂的狮子Li
2024-11-05 14:29:13 +08:00
parent 9ed3ae3fab
commit fdfb556c8e
5 changed files with 6 additions and 6 deletions

View File

@ -142,7 +142,7 @@ const dynamicClearEvent = async () => {
/** 租户列表 */
const initTenantList = async () => {
const { data } = await getTenantList();
const { data } = await getTenantList(true);
tenantEnabled.value = data.tenantEnabled === undefined ? true : data.tenantEnabled;
if (tenantEnabled.value) {
tenantList.value = data.voList;