shuishen
2023-03-07 4fd41d31cc5bf5563df3977c66694b8e6ae5e855
src/views/activity/components/drawBtnBox.vue
@@ -125,7 +125,7 @@
                        overlay.policeType = policeType
                        that.$parent.overlayObj = overlay
                        that.$emit('setOverlayObj', overlay)
                        document.oncontextmenu = function () {
                            if (flag == true && poltType == 'billboard') {
@@ -135,7 +135,8 @@
                                    that.$parent.choosePoliceColor = '#FF0000'
                                    that.$parent.policeChooseVisible = true
                                } else if (policeType == 'policecar') {
                                    that.$parent.policeOption = that.$parent.policecarOption
                                    that.$emit('setPoliceOption')
                                    that.$parent.chooseCarColor = '#FF0000'
                                    that.$parent.policeChooseCarVisible = true
                                }
@@ -199,7 +200,6 @@
                    }
                }, { material: global.DC.Color.RED })
            } else if (type == 'billboard') {
                console.log(11)
                const that = this
                let flag = false
@@ -338,8 +338,11 @@
    },
    destroyed () {
        this.removeDraw()
        this.removeDrawArrow()
        drawLayers.remove()
        drawLayers = null
        drawArrowLayers.clear()
        drawArrowLayers = null
    },
}
</script>