perf: optimize query and device tree

This commit is contained in:
yangsy
2025-09-04 14:05:12 +08:00
parent 80feb909de
commit 468b498d51
3 changed files with 12 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import { storeToRefs } from 'pinia';
import { computed } from 'vue';
import dayjs from 'dayjs';
import { postNdmDeviceAlarmLogPage } from '@/apis/requests';
import { sleep, sleepFrame, sleepIdle } from '@/utils/sleep';
import { sleepFrame } from '@/utils/sleep';
import type { Station } from '@/apis/domains';
import { DeviceType, getDeviceTypeVal } from '@/enums/device-type';
import type { StationAlarmCounts } from './domains';

View File

@@ -8,7 +8,7 @@ import type { StationDevices } from './domains';
import { useLineDevicesStore } from '@/stores/line-devices';
import { LINE_DEVICES_QUERY_KEY } from '@/constants';
import { ndmClient } from '@/apis/client';
import { sleep, sleepFrame, sleepIdle } from '@/utils/sleep';
import { sleepFrame } from '@/utils/sleep';
import type { Station } from '@/apis/domains';
const createEmptyStationDevices = (): StationDevices => {