Integrating Amap into vue

according to the step-by-step implementation of online tutorials, AMap has been successfully introduced, but the page is blank when the map generation method is called, and there is nothing in dom. What is the situation? please give us some advice from the passing bosses.

![] [2]

Mar.04,2021

so you don't need import to generate a map, okay? just put a script tag in the header of the index page and run your function on the page you need to display.


call drawMap in created to try


it is not clear how the subject is made into a component, but it depends on the later stage of your implementation. look, there is nothing in it.

http://t.cn/RnnScze

I have a link here. I don't know if it can help you
. Besides, it is suggested to implement the call in created and initialize the call

.

there is also the problem that you need to load asynchronously, otherwise you may have initialized the problem that the loading is not complete

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bb04-2bafe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bb04-2bafe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?