fix: 获取用户接口调用问题

This commit is contained in:
caiyuchao
2025-08-18 10:15:43 +08:00
parent cffe98c31d
commit 6bd0699c69

View File

@@ -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();