current position:Home>The Axios request in vue3 always has the problem of spanning. Many online methods are used, but they are useless

The Axios request in vue3 always has the problem of spanning. Many online methods are used, but they are useless

2022-01-27 02:39:01 CSDN Q & A

problem : send out get request , Always show spanning issues

img

axios:

img

main.js Content :

img

vue.config.vue To configure :

img




Refer to the answer 1:

Then configure the cross domain proxy




Refer to the answer 2:



Refer to the answer 3:

Let the backend handle it




Refer to the answer 4:



Refer to the answer 5:



Refer to the answer 6:



Refer to the answer 7:

img

img

img




Refer to the answer 8:



Refer to the answer 9:



Refer to the answer 10:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270238588274.html

Random recommended