|
@@ -28,18 +28,18 @@ function LayoutDetail(props) {
|
|
});
|
|
});
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
- // useEffect(() => {
|
|
|
|
- // if (!currentUser.ID) return;
|
|
|
|
- // clearInterval(timer);
|
|
|
|
- // timer = setInterval(() => {
|
|
|
|
- // dispatch({
|
|
|
|
- // type: 'authList/queryAuthList',
|
|
|
|
- // payload: { user_id: currentUser.ID },
|
|
|
|
- // });
|
|
|
|
- // }, 10000);
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
+ if (!currentUser.ID) return;
|
|
|
|
+ clearInterval(timer);
|
|
|
|
+ timer = setInterval(() => {
|
|
|
|
+ dispatch({
|
|
|
|
+ type: 'authList/queryAuthList',
|
|
|
|
+ payload: { user_id: currentUser.ID },
|
|
|
|
+ });
|
|
|
|
+ }, 10000);
|
|
|
|
|
|
- // return () => clearInterval(timer);
|
|
|
|
- // }, [currentUser.ID]);
|
|
|
|
|
|
+ return () => clearInterval(timer);
|
|
|
|
+ }, [currentUser.ID]);
|
|
|
|
|
|
return (
|
|
return (
|
|
<Layout>
|
|
<Layout>
|
|
@@ -59,13 +59,13 @@ function LayoutDetail(props) {
|
|
<Menu.Item key="/home/flow-list">
|
|
<Menu.Item key="/home/flow-list">
|
|
<Link to="/home/flow-list">流程管理</Link>
|
|
<Link to="/home/flow-list">流程管理</Link>
|
|
</Menu.Item>
|
|
</Menu.Item>
|
|
- {/* <Menu.Item key="/home/auth">
|
|
|
|
|
|
+ <Menu.Item key="/home/auth">
|
|
<Link to="/home/auth">
|
|
<Link to="/home/auth">
|
|
<Badge count={authList.length} className={styles.badge}>
|
|
<Badge count={authList.length} className={styles.badge}>
|
|
审核列表
|
|
审核列表
|
|
</Badge>
|
|
</Badge>
|
|
</Link>
|
|
</Link>
|
|
- </Menu.Item> */}
|
|
|
|
|
|
+ </Menu.Item>
|
|
</Menu>
|
|
</Menu>
|
|
</div>
|
|
</div>
|
|
<RightContent />
|
|
<RightContent />
|