diff --git a/src/pages/vimp/composables/query/use-channels-query.ts b/src/pages/vimp/composables/query/use-channels-query.ts index e4e990b..70c2698 100644 --- a/src/pages/vimp/composables/query/use-channels-query.ts +++ b/src/pages/vimp/composables/query/use-channels-query.ts @@ -4,7 +4,7 @@ import type { AxiosRequestConfig } from 'axios'; import axios from 'axios'; import { compileCodeAreas, type CodeArea, type CodeLines, type CodeSites } from '../../types'; import { useCameraStore, useAlarmStore } from '../../stores'; -import { cientCatalogAllDeviceApi, clientCatalogChannelApi, type VimpChannel, type VimpSite } from '../../apis'; +import { clientCatalogAllDeviceApi, clientCatalogChannelApi, type VimpChannel, type VimpSite } from '../../apis'; import { VIMP_CHANNELS_QUERY_KEY } from '../../constants'; const config: AxiosRequestConfig = { @@ -69,7 +69,7 @@ export const useChannelsQuery = () => { codeTrainAreas, }); - const sitesFromApi = await cientCatalogAllDeviceApi({ signal }); + const sitesFromApi = await clientCatalogAllDeviceApi({ signal }); // 从 /allDevice 接口获取的站点信息并不保证真实性和完整性, // 例如有一个站点的编码是 010699 开头,但是其下的通道是 010199 和 010599 开头,