| | |
| | | import { showDeviceDetail } from "@/store"; |
| | | import { setupTokenRefresh, getDangerPoint } from "@/api/hpApi.js"; |
| | | import { convertToWKT } from "@/utils/wktUtils"; |
| | | import { getDeviceInfo } from "@/api/hpApi"; |
| | | import { getDeviceInfo, getSafePoint } from "@/api/hpApi"; |
| | | |
| | | const route = useRoute(); |
| | | const simStore = useSimStore(); |
| | |
| | | // 计算属性 |
| | | const showDetail = computed(() => showDeviceDetail.value); |
| | | |
| | | |
| | | onMounted(async () => { |
| | | setupTokenRefresh(); // 获取宏图token |
| | | // getSimData(); //测试tr后端 |
| | |
| | | simStore.DangerPoint = res.data.pageData; |
| | | }); |
| | | |
| | | getDeviceInfo(null,"110116110000").then((res) => { |
| | | getDeviceInfo(null, "110116110000").then((res) => { |
| | | simStore.devices = res.data.pageData; |
| | | }); |
| | | try { |