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(); }, };