feat:等保
4. handleAuth: MenuProps 的引用key 处理 遗漏
This commit is contained in:
@ -118,6 +118,7 @@
|
|||||||
import { Switch, Modal } from 'ant-design-vue';
|
import { Switch, Modal } from 'ant-design-vue';
|
||||||
import { PageWrapper } from '/@/components/Page';
|
import { PageWrapper } from '/@/components/Page';
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
|
import type { MenuProps } from 'ant-design-vue';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
@ -274,14 +275,14 @@
|
|||||||
id: res.id,
|
id: res.id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleAuth() {
|
const handleAuth: MenuProps['onClick'] = e => {
|
||||||
let res = warning(true);
|
let res = warning(true);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
openRoleUserModal(true, {
|
openRoleUserModal(true, {
|
||||||
id: res.id,
|
id: res.id,
|
||||||
|
key: e.key,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleAppAuth() {
|
function handleAppAuth() {
|
||||||
|
|||||||
Reference in New Issue
Block a user