fix: 获取用户接口调用问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { ProjectApi } from '#/api/license/project';
|
||||
import type { SystemUserApi } from '#/api/system/user';
|
||||
|
||||
import { ref } from 'vue';
|
||||
|
||||
@@ -16,8 +17,14 @@ import { getSimpleUserList } from '#/api/system/user';
|
||||
import { $t } from '#/locales';
|
||||
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
let userList = await getSimpleUserList();
|
||||
userList = userList.filter((item) => item.nickname !== '管理员'); // 过滤掉系统用户
|
||||
const userList = ref<SystemUserApi.User[]>();
|
||||
|
||||
const getUserList = async () => {
|
||||
userList.value = await getSimpleUserList();
|
||||
userList.value = userList.value.filter((item) => item.nickname !== '管理员'); // 过滤掉系统用户
|
||||
};
|
||||
|
||||
getUserList();
|
||||
|
||||
const { hasAccessByCodes } = useAccess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user