ElemeFE / vue-amap

🌍 基于 Vue 2.x 和高德地图的地图组件
https://elemefe.github.io/vue-amap/
MIT License
3.33k stars 584 forks source link

自定义信息窗口 .vue里无法使用vuex #664

Open Driverdily opened 2 years ago

Driverdily commented 2 years ago

你好,我使用了自定义信息窗口子类,直接import+components导入子.vue;可以正常显示,然后在再.vue文件中使用vuex就会报错找不到vuex。请问该如何实例化。 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_modulesNamespaceMap') at getModuleByNamespace (vuex.esm.js?2f62:1132), var module = store._modulesNamespaceMap[namespace];