diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue index 20b6741..a357bb7 100644 --- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue +++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue @@ -27,7 +27,7 @@ const modalLoading = ref(true); // 初始化模型 -const SceneModal = new THREE.Scene(); +let SceneModal = new THREE.Scene(); const CameraModal = new THREE.PerspectiveCamera(30, AllData.value.imgWidth / AllData.value.imgHeight, 0.1, 5000); const Renderer = new THREE.WebGLRenderer({ antialias: true, diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue index 20b6741..a357bb7 100644 --- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue +++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/modalSJ.vue @@ -27,7 +27,7 @@ const modalLoading = ref(true); // 初始化模型 -const SceneModal = new THREE.Scene(); +let SceneModal = new THREE.Scene(); const CameraModal = new THREE.PerspectiveCamera(30, AllData.value.imgWidth / AllData.value.imgHeight, 0.1, 5000); const Renderer = new THREE.WebGLRenderer({ antialias: true, diff --git a/src/views/spongePerformance/mainIndex/footRight.vue b/src/views/spongePerformance/mainIndex/footRight.vue index 81e5fd5..2dbec14 100644 --- a/src/views/spongePerformance/mainIndex/footRight.vue +++ b/src/views/spongePerformance/mainIndex/footRight.vue @@ -7,9 +7,7 @@ import { init } from 'echarts'; import 'echarts-liquidfill/src/liquidFill.js'; const assetEchart = ref(null); -let { - data: { xData, yData }, -} = defineProps(['data']); +let datas = defineProps(['data']); const initM = () => { const chart = init(assetEchart.value); @@ -69,7 +67,7 @@ color: '#fff', }, }, - data: xData, + data: datas.xData, }, ], yAxis: [ @@ -147,7 +145,7 @@ }, }, - data: yData, + data: datas.yData, }, ], });