Showing
1 changed file
with
2 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-05-19 14:54:27 | 2 | * @Date: 2023-05-19 14:54:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-05-29 17:29:12 | 4 | + * @LastEditTime: 2023-05-29 18:12:10 |
| 5 | * @FilePath: /map-demo/src/views/index.vue | 5 | * @FilePath: /map-demo/src/views/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -68,7 +68,6 @@ | ... | @@ -68,7 +68,6 @@ |
| 68 | import coord from '@/common/tiantan_v2' | 68 | import coord from '@/common/tiantan_v2' |
| 69 | // import AMap from 'AMap' | 69 | // import AMap from 'AMap' |
| 70 | import _ from 'lodash'; | 70 | import _ from 'lodash'; |
| 71 | -import { makeRequiredProp } from 'vant/lib/utils'; | ||
| 72 | 71 | ||
| 73 | const GPS = { | 72 | const GPS = { |
| 74 | PI: 3.14159265358979324, | 73 | PI: 3.14159265358979324, |
| ... | @@ -355,7 +354,7 @@ export default { | ... | @@ -355,7 +354,7 @@ export default { |
| 355 | content: infoWindowContent | 354 | content: infoWindowContent |
| 356 | }); | 355 | }); |
| 357 | if (clickListener) { | 356 | if (clickListener) { |
| 358 | - makeRequiredProp.off('click', clickListener) | 357 | + infoWindow.off('click', clickListener) |
| 359 | } | 358 | } |
| 360 | // 绑定景点的点击事件 - 文字出现才能触发 | 359 | // 绑定景点的点击事件 - 文字出现才能触发 |
| 361 | var clickListener = marker.on('click', (e) => { | 360 | var clickListener = marker.on('click', (e) => { | ... | ... |
-
Please register or login to post a comment