From 4b210fa19fe49b43129f5f4b7f86d7a6b91a2e57 Mon Sep 17 00:00:00 2001 From: ko1234 Date: Fri, 29 Aug 2025 16:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20spriteIconUrl=20=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E5=BE=91=EF=BC=8C=E7=A7=BB=E9=99=A4=E5=A4=9A=E9=A4=98?= =?UTF-8?q?=E7=9A=84=20/dist=EF=BC=8C=E4=B8=A6=E6=9B=B4=E6=96=B0=20useHeat?= =?UTF-8?q?mapBarStore=20=E7=9A=84=20API=20=E8=B7=AF=E5=BE=91=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=EF=BC=8C=E7=B0=A1=E5=8C=96=E7=82=BA=E7=B5=B1=E4=B8=80?= =?UTF-8?q?=E7=9A=84=20/config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/forge/index.vue | 2 +- src/hooks/forge/useForgeSprite.js | 2 +- src/stores/useHeatmapBarStore.js | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/forge/index.vue b/src/components/forge/index.vue index 5d28852..66da2b7 100644 --- a/src/components/forge/index.vue +++ b/src/components/forge/index.vue @@ -94,7 +94,7 @@ const createSprites = async (dataVizExtn) => { const viewableType = DataVizCore.ViewableType.SPRITE; let spriteColor = new THREE.Color(0xffffff); const BASEURL = window.env?.VITE_FILE_API_BASEURL; - const spriteIconUrl = `${BASEURL}/dist/hotspot.svg`; + const spriteIconUrl = `${BASEURL}/hotspot.svg`; const style = new DataVizCore.ViewableStyle( viewableType, spriteColor, diff --git a/src/hooks/forge/useForgeSprite.js b/src/hooks/forge/useForgeSprite.js index 34fc98a..6f2bd26 100644 --- a/src/hooks/forge/useForgeSprite.js +++ b/src/hooks/forge/useForgeSprite.js @@ -90,7 +90,7 @@ export default function useForgeSprite() { const viewableType = DataVizCore.ViewableType.SPRITE; let spriteColor = new THREE.Color(0xffffff); const BASEURL = window.env?.VITE_FILE_API_BASEURL; - const spriteIconUrl = `${BASEURL}/dist/hotspot.svg`; + const spriteIconUrl = `${BASEURL}/hotspot.svg`; const viewableData = new DataVizCore.ViewableData(); viewableData.spriteSize = 24; // Sprites as points of size 24 x 24 pixels flatSubData.value?.forEach((d, index) => { diff --git a/src/stores/useHeatmapBarStore.js b/src/stores/useHeatmapBarStore.js index 6533620..72c0a8d 100644 --- a/src/stores/useHeatmapBarStore.js +++ b/src/stores/useHeatmapBarStore.js @@ -10,10 +10,7 @@ const useHeatmapBarStore = defineStore("heatmap", () => { const heatmapConfig = computed(() => allHeatMaps.value[route.query?.gas]); const getConfig = async () => { - const api = - import.meta.env.MODE === "production" - ? "/dist/config.json" - : "/config.json"; + const api = "/config.json"; const res = await axios.get(api); console.log(res); allHeatMaps.value = res.data.heatmap;