format: remove finished TODOs
This commit is contained in:
@@ -94,8 +94,6 @@ function useStationAlarmCountsMutation() {
|
|||||||
return stationAlarmCounts;
|
return stationAlarmCounts;
|
||||||
},
|
},
|
||||||
onSuccess: (stationAlarmCounts, { station }) => {
|
onSuccess: (stationAlarmCounts, { station }) => {
|
||||||
// lineAlarmCounts.value[station.code] = stationAlarmCounts;
|
|
||||||
// await sleepFrame();
|
|
||||||
runTask(() => {
|
runTask(() => {
|
||||||
lineAlarmCounts.value[station.code] = stationAlarmCounts;
|
lineAlarmCounts.value[station.code] = stationAlarmCounts;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -76,9 +76,6 @@ function useStationDevicesMutation() {
|
|||||||
return await getNdmDevicesAll(station.code, signal);
|
return await getNdmDevicesAll(station.code, signal);
|
||||||
},
|
},
|
||||||
onSuccess: (stationDevices, { station }) => {
|
onSuccess: (stationDevices, { station }) => {
|
||||||
// TODO: 优化性能,避免阻塞主线程(待测试)
|
|
||||||
// lineDevices.value[station.code] = stationDevices;
|
|
||||||
// await sleepFrame();
|
|
||||||
runTask(() => {
|
runTask(() => {
|
||||||
lineDevices.value[station.code] = stationDevices;
|
lineDevices.value[station.code] = stationDevices;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user