|
@@ -100,7 +100,7 @@ import {
|
|
|
getCurrentInstance,
|
|
|
ComponentInternalInstance,
|
|
|
toRefs,
|
|
|
- nextTick, onUnmounted
|
|
|
+ nextTick, onUnmounted, onBeforeUnmount
|
|
|
} from 'vue'
|
|
|
import {useStore} from 'vuex'
|
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
@@ -378,6 +378,10 @@ export default defineComponent({
|
|
|
initLayer()
|
|
|
}
|
|
|
})
|
|
|
+ onBeforeUnmount(() => {
|
|
|
+ state.cusTransfer.draw.radiusTips = false
|
|
|
+ emit('update:transfer', state.cusTransfer)
|
|
|
+ })
|
|
|
onUnmounted(() => {
|
|
|
state.cusTransfer.result.isInit = false
|
|
|
store.state.gis.analysis.layer.setVisible(false)
|