修复地图定位点不更新显示的bug

master
叶志超 2021-12-22 13:29:13 +08:00
parent 4af0cbad96
commit f2ac10c0e3
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ const option = reactive({
}
},
// //
data: [{}],
data: [],
showEffectOn: 'render',//'render' 'emphasis' hover
rippleEffect: {//
brushType: 'stroke'// 'stroke' 'fill'
@ -73,7 +73,7 @@ const option = reactive({
});
const update = (longitude: number, latitude: number) => {
option.series[1].data[0].value = [longitude, latitude]
option.series[0].data[0] = [longitude, latitude]
}
defineExpose({ update })