yangyanggu / vue-amap

高德地图封装 for vue2 vue3.0
https://vue-amap.guyixi.cn/
MIT License
252 stars 13 forks source link

关于vite define 配置问题 #71

Closed Canees closed 6 months ago

Canees commented 6 months ago

使用版本

请填写使用版本: vue-amap: 2.0.24 vue: 3.2.37 node:19.3.0 yarn:1.22.21

问题描述

经过多次测试,确定是 vite 中 define 禁用了 vue option 会导致地图不加载,也不会报错提示,如确实需要禁用,改如何处理?

image image image image
yangyanggu commented 6 months ago

组件库由于是从vue2移植过来,所以还是使用options模式,禁用了就无法正常使用组件