This commit is contained in:
yangsy
2025-09-26 12:03:59 +08:00
parent a2e7af2035
commit f7a1de33ea

View File

@@ -28,8 +28,8 @@ const { stationLayoutGridCols } = storeToRefs(layoutStore);
// 当设备查询或告警查询正在进行时,显示加载条 // 当设备查询或告警查询正在进行时,显示加载条
watch( watch(
[lineDevicesFetching, lineAlarmCountsFetching], [lineDevicesFetching, lineAlarmCountsFetching],
(fetchingList) => { ([devicesFetching, alarmCountsFetching]) => {
if (fetchingList.some((pending) => pending)) { if (devicesFetching || alarmCountsFetching) {
window.$loadingBar.start(); window.$loadingBar.start();
} else { } else {
window.$loadingBar.finish(); window.$loadingBar.finish();