diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 9b7b857..f3712f1 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -118,6 +118,7 @@ import { Switch, Modal } from 'ant-design-vue'; import { PageWrapper } from '/@/components/Page'; import { useModal } from '/@/components/Modal'; + import type { MenuProps } from 'ant-design-vue'; import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); export const columns: BasicColumn[] = [ @@ -274,14 +275,14 @@ id: res.id, }); } - function handleAuth() { + const handleAuth: MenuProps['onClick'] = e => { let res = warning(true); if (!res) { return; } - openRoleUserModal(true, { id: res.id, + key: e.key, }); } function handleAppAuth() {