fix: hostId 变更类型和字段名

This commit is contained in:
TsMask
2025-02-26 09:51:34 +08:00
parent cdc31a9ced
commit 7429a55734
14 changed files with 103 additions and 108 deletions

View File

@@ -277,6 +277,7 @@ let dict: {
});
let timer: any;
let timerFlag: boolean = false;
onMounted(() => {
// 初始字典数据
Promise.allSettled([getDict('ne_info_status'), getDict('index_status')])
@@ -292,7 +293,7 @@ onMounted(() => {
fnLocale();
await fnGetList(false);
timer = setInterval(() => {
if (!timer) return;
if (timerFlag) return;
fnGetList(true);
}, 10_000); // 每隔10秒执行一次
});
@@ -302,6 +303,7 @@ onMounted(() => {
onBeforeUnmount(() => {
clearInterval(timer);
timer = null;
timerFlag = true;
});
</script>