AMapLoader.reset() 需要把这个reset一下
initMap() {
window._AMapSecurityConfig = {
securityJsCode: '',
};
AMapLoader.reset()
AMapLoader.load({
key: "",
version: "2.0"
}).then((AMap) => {
const map = new AMap.Map("container", {
viewMode: "3D",
zoom: 13,
center: [113.808299, 34.791787]
});
key和安全密钥记得也要填写正确