Vue uses Gaode map -- AMap.Autocomplete is not a constructor error report

Using Vue in the project to use Gaode map – AMap.Autocomplete is not a constructor error report:
insert image description here

Check if there is a plugin loaded on the script tag that imports the map AMap.AutoComplete, the plugin uses ,the connection

<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=0000000000000000000&plugin=AMap.DistrictSearch,AMap.Geocoder,AMap.DistrictLayer,AMap.AutoComplete,AMap.PlaceSearch">
</script>

Note:
AMap.AutoCompleteCase is sensitive, there is no distinction when using it, and it should be case sensitive when loading on the label

Guess you like

Origin blog.csdn.net/weixin_44801790/article/details/126350767