Vue devserver proxy configuration interface path + front-end page access path

Realize the effect:

/admin-api is the background interface path

/ele-ui is the front-end page access path

 

 

vue.config.js settings 

 .env.prod settings 

 router's index.js

 In addition, some location.href jump pages need to be manually modified

 

Guess you like

Origin blog.csdn.net/qq_43770056/article/details/129708623