提交 60d6d183 作者: ZhangLingKun

优化:操作完成后刷新菜单栏数据

上级 e4325322
流水线 #7668 已通过 于阶段
in 1 分 1 秒
...@@ -102,6 +102,8 @@ export function MenuView() { ...@@ -102,6 +102,8 @@ export function MenuView() {
const brr = getItem(value)?.filter((i: any) => i?.children?.length) || []; const brr = getItem(value)?.filter((i: any) => i?.children?.length) || [];
// 设置要展示的菜单列表 // 设置要展示的菜单列表
setItems([...arr, ...brr]); setItems([...arr, ...brr]);
// 将方法挂载到全局
(window as any).getMessageNumber = getMessageNumber;
}); });
}, []); }, []);
......
...@@ -178,6 +178,7 @@ const SureOrder: FC<ModalProps & selfProps> = ({ open, onOk, onCancel, orderItem ...@@ -178,6 +178,7 @@ const SureOrder: FC<ModalProps & selfProps> = ({ open, onOk, onCancel, orderItem
orderInfoForm.resetFields(); orderInfoForm.resetFields();
contractForm.resetFields(); contractForm.resetFields();
setContractFileList([]); setContractFileList([]);
(window as any).getMessageNumber();
onOk(); onOk();
} else { } else {
message.error(msg); message.error(msg);
......
...@@ -319,6 +319,7 @@ const CustomIdentityView = () => { ...@@ -319,6 +319,7 @@ const CustomIdentityView = () => {
setEditData(undefined); setEditData(undefined);
paginationChange(pagination.current, pagination.pageSize); paginationChange(pagination.current, pagination.pageSize);
getListAppUserCount(); getListAppUserCount();
(window as any).getMessageNumber();
}} }}
/> />
{/*编辑弹窗*/} {/*编辑弹窗*/}
......
...@@ -241,6 +241,7 @@ const DynamicList = () => { ...@@ -241,6 +241,7 @@ const DynamicList = () => {
paginationChange(pagination.pageNo, pagination.pageSize); paginationChange(pagination.pageNo, pagination.pageSize);
Modal.destroyAll(); Modal.destroyAll();
getCountGambit(); getCountGambit();
(window as any).getMessageNumber();
} }
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论