fix: show bound tenant in im menus
This commit is contained in:
@@ -3,7 +3,7 @@ import { cloneDeep } from 'lodash-es';
|
||||
import { FormSchema } from '@/components/Form';
|
||||
import { defRangeShortcuts } from '@/utils/dateUtil';
|
||||
import { useDictStore } from '@/store/modules/dict';
|
||||
import { List as TenantList } from '@/api/imTenant';
|
||||
import { loadImTenantOptions } from '@/views/imTenantOptions';
|
||||
|
||||
const dict = useDictStore();
|
||||
|
||||
@@ -152,10 +152,5 @@ export function loadOptions() {
|
||||
}
|
||||
|
||||
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