guonan
2025-06-20 116f7bdb280d418c89c24be6566d81dc755ba9d9
src/views/Home.vue
@@ -60,7 +60,7 @@
import { showDeviceDetail } from "@/store";
import { setupTokenRefresh, getDangerPoint } from "@/api/hpApi.js";
import { convertToWKT } from "@/utils/wktUtils";
import { getDeviceInfo, getSafePoint } from "@/api/hpApi";
import { getDeviceInfoSHG, getSafePoint } from "@/api/hpApi";
const route = useRoute();
const simStore = useSimStore();
@@ -100,7 +100,6 @@
// 计算属性
const showDetail = computed(() => showDeviceDetail.value);
onMounted(async () => {
  setupTokenRefresh(); // 获取宏图token
  // getSimData(); //测试tr后端
@@ -109,7 +108,7 @@
    simStore.DangerPoint = res.data.pageData;
  });
  getDeviceInfo(null, "110116110000").then((res) => {
  getDeviceInfoSHG(null).then((res) => {
    simStore.devices = res.data.pageData;
  });
  try {