When using VUE to request a large amount of data, the browser is easy to request a timeout,
press F12 to check the error
Uncaught (in promise) Error: timeout of 30000ms exceeded
Find the file httpRequest.js
, my path is as follow:
E:\WebstormProjects\webums_vue\src\utils\httpRequest.js
in the file httpRequest.js
you can find code block like bellow:
const http = axios.create({
timeout: 1000 * 30,
withCredntials: true,
heades: {
ontent-Type' : 'application/json; charset=utf-8'
}
})
change 30
to 120
or any other number larger than 30.
Run again, it will work again.