refactor
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user