From f549bae16129c2ccd2c689a369e3ca378b806a5e Mon Sep 17 00:00:00 2001 From: lvjunzhao <967725@dms.yudean.com> Date: Sat, 8 Feb 2025 14:23:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=AD=89=E4=BF=9D=204.=20handleAuth:=20Me?= =?UTF-8?q?nuProps=20=E7=9A=84=E5=BC=95=E7=94=A8key=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=20=E9=81=97=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {