diff --git a/src/views/sponeScreen/HaiMianScreen/index.vue b/src/views/sponeScreen/HaiMianScreen/index.vue index 2841368..39d0d18 100644 --- a/src/views/sponeScreen/HaiMianScreen/index.vue +++ b/src/views/sponeScreen/HaiMianScreen/index.vue @@ -209,6 +209,7 @@ getWeather(); }); onBeforeUnmount(() => { + if (!newfiberMap) return; if (newfiberMap) { console.log('newfiberMap.getMap().destroy()'); let _originalGLContext = newfiberMap.getMap().scene?.context._originalGLContext; diff --git a/src/views/sponeScreen/HaiMianScreen/index.vue b/src/views/sponeScreen/HaiMianScreen/index.vue index 2841368..39d0d18 100644 --- a/src/views/sponeScreen/HaiMianScreen/index.vue +++ b/src/views/sponeScreen/HaiMianScreen/index.vue @@ -209,6 +209,7 @@ getWeather(); }); onBeforeUnmount(() => { + if (!newfiberMap) return; if (newfiberMap) { console.log('newfiberMap.getMap().destroy()'); let _originalGLContext = newfiberMap.getMap().scene?.context._originalGLContext; diff --git a/src/views/spongePerformance/OutputPerformance/AnnualRunoffPollution.vue b/src/views/spongePerformance/OutputPerformance/AnnualRunoffPollution.vue index 3075239..d2a1340 100644 --- a/src/views/spongePerformance/OutputPerformance/AnnualRunoffPollution.vue +++ b/src/views/spongePerformance/OutputPerformance/AnnualRunoffPollution.vue @@ -2,7 +2,7 @@