From 89d44959b240124dd9a661e02936155917a23767 Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Tue, 23 Jan 2024 17:47:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/AMapContainer/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue index 0fb1db4d..757cdf9e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue @@ -199,8 +199,8 @@ export default { }, }, // unmounted() { - destroyed(){ - if (!this.aMapIns) return; + beforeDestroy() { + if (!this.aMapIns || !this.aMapIns.destroyed) return; this.aMapIns.destroyed(); }, };