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