Click on the marker of Baidu Map to play the pop-up window component written by yourself. The component cannot be hidden and displayed using v-show.

in the vue project, I wrote a pop-up window component because the pop-up window style could not be changed. By clicking marker to show and hide it, I wanted to directly use v-show to show and hide, but to no avail. I think it"s because there is something wrong with the click event of marker, so please have a look.

clipboard.png

clipboard.png

clipboard.png

Mar.23,2021

think for yourself whether this points to right.


to fill in the hole
at that time, the code this pointed incorrectly
and had problems understanding vue

.
Menu