[Vuejs]-The map does not work at the beginning of going to the page, but works if it works refresh page in vuejs

0👍

Replace mounted() by created()

mounted() is called after DOM has been mounted so you can access the reactive component, templates, and DOM elements and manipulate them.

If you need to know more about vue Lifecycle Hooks.

Leave a comment