0👍
Axios timeout is responsible for response timeout. If you want to wait for the data for about 30 seconds, you can use a Promise
to wait for about 30 seconds.
async function getData() {
const data = await this.$http.get(stringUrl, {parameters: {limit: 5000}},timeout: 30000)
return new Promise(res => setTimeout(res(data), 30000))
}
- [Vuejs]-VueJS view changes doesnt reflect in laravel Xampp
- [Vuejs]-How do you properly dispatch an action in vuex? Getting error [vuex] unknown action type in Chrome
Source:stackexchange.com