feat:等保

4. handleAuth: MenuProps 的引用key 处理 遗漏
This commit is contained in:
lvjunzhao
2025-02-08 14:23:27 +08:00
parent 273eb0f438
commit f549bae161

View File

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