when vue introduces Amap, he can"t import AMap undefined all the time. Dare to ask all the bosses how to solve it!
first of all, after I introduced amap.js, in index.html, I configured it in the webpack.base.conf.js file as follows:
module.exports = {
extensions: [".AMap"]
}
finally, import AMap from "AMap",
result is introduced into the component