refactor(query): remove unnecessary query calls and optimize global loading

This commit is contained in:
yangsy
2025-11-14 16:36:07 +08:00
parent 1ed091f54d
commit 686fdc8724
13 changed files with 69 additions and 105 deletions

View File

@@ -30,7 +30,6 @@ const vimpOperationTypeOptions: SelectOption[] = [
<script setup lang="ts">
import type { NdmVimpLogResultVO } from '@/apis/models/device';
import { ndmVimpLogDefaultExportByTemplate, postNdmVimpLogPage } from '@/apis/requests';
import { useStationListQuery } from '@/composables/query';
import { useStationStore } from '@/stores/station';
import { downloadByData } from '@/utils/download';
import { useMutation } from '@tanstack/vue-query';
@@ -57,7 +56,6 @@ import {
import { storeToRefs } from 'pinia';
import { computed, h, onMounted, reactive, ref, watch, watchEffect } from 'vue';
useStationListQuery();
const stationStore = useStationStore();
const { stationList, onlineStationList } = storeToRefs(stationStore);