mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 11:56:08 +08:00
修复任务视图tab激活状态
This commit is contained in:
parent
ce3df8704d
commit
0198ebbbff
|
@ -838,11 +838,14 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
|||
if (pageConf.page && pageConf.size) {
|
||||
getCrons();
|
||||
}
|
||||
if (viewConf) {
|
||||
}, [pageConf, viewConf]);
|
||||
|
||||
useEffect(() => {
|
||||
if (viewConf && enabledCronViews && enabledCronViews.length > 0) {
|
||||
const view = enabledCronViews.slice(2).find((x) => x.id === viewConf.id);
|
||||
setMoreMenuActive(!!view);
|
||||
}
|
||||
}, [pageConf, viewConf]);
|
||||
}, [viewConf, enabledCronViews]);
|
||||
|
||||
useEffect(() => {
|
||||
setPageConf({
|
||||
|
|
Loading…
Reference in New Issue
Block a user