fix: show bound tenant in im menus
This commit is contained in:
@@ -2,7 +2,7 @@ import { computed, ref } from 'vue';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { FormSchema } from '@/components/Form';
|
||||
import { defRangeShortcuts } from '@/utils/dateUtil';
|
||||
import { List as TenantList } from '@/api/imTenant';
|
||||
import { loadImTenantOptions } from '@/views/imTenantOptions';
|
||||
|
||||
export const tenantOptions = ref<any[]>([]);
|
||||
|
||||
@@ -110,10 +110,5 @@ export const columns = [
|
||||
];
|
||||
|
||||
export async function loadTenantOptions() {
|
||||
const res = await TenantList({ page: 1, perPage: 20 });
|
||||
tenantOptions.value = (res?.list || []).map((item) => ({
|
||||
label: `${item.name}(${item.code})`,
|
||||
value: item.id,
|
||||
}));
|
||||
return tenantOptions.value;
|
||||
return loadImTenantOptions(tenantOptions, { page: 1, perPage: 20 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user