提交 高低电压穿越 页面
This commit is contained in:
@@ -165,12 +165,19 @@ const GetEchar = async (name: string) => {
|
||||
}
|
||||
myCharts.value.setOption(option)
|
||||
window.addEventListener('resize', resizeHandler)
|
||||
|
||||
const flag1 = ref(true)
|
||||
// 点击事件
|
||||
myCharts.value.off('click')
|
||||
myCharts.value.on('click', (e: any) => {
|
||||
if (props.options.geo3D) {
|
||||
emit('clickMap', e)
|
||||
// emit('clickMap', e)
|
||||
if (flag1.value) {
|
||||
flag1.value = false
|
||||
setTimeout(() => {
|
||||
emit('clickMap', e)
|
||||
flag1.value = true
|
||||
}, 100)
|
||||
}
|
||||
} else {
|
||||
// if (name == dictData.state.area?.[0].name && e.componentIndex == 0) {
|
||||
if (name == '中国' && e.componentIndex == 0) {
|
||||
|
||||
Reference in New Issue
Block a user