0👍
For example, to wait for 1 second in an async
function:
await new Promise(resolve => setTimeout(resolve, 1000))
You could also extract this into a more convenient utility:
function wait(seconds) {
return new Promise(resolve => setTimeout(resolve, seconds * 1000))
}
await wait(1)
- [Vuejs]-How to get google places details for place id on vue frontend?
- [Vuejs]-VueJS – template variables not reactive with data variable
Source:stackexchange.com