This commit is contained in:
zk
2023-12-20 10:25:06 +08:00
parent ce85f39c11
commit 3cc95902ae
12 changed files with 119 additions and 75 deletions
@@ -30,6 +30,7 @@
import $bus from '/@/utils/bus.ts';
import { earlyWarning } from '/@/utils/busConstant.ts';
import { useRefresh } from '/@/hooks/autoRefresh';
import { PAGE_SWITCH } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
const props = defineProps({
orgCode: String,
@@ -96,7 +97,7 @@
// }, 3000);
}
const { refreshState } = useRefresh(3000, () => {
const { refreshState } = useRefresh(PAGE_SWITCH, () => {
interval();
});
onUnmounted(() => {