Test and production environments in vue projects are often different from each other in front of URL.
is now defined in main.js.Vue.prototype.host = "http://test.xyz/voronezh";
Vue.prototype.host = "http://dbtest.xyz/voronezh";
these two variables are, of course, more than these two, and the jump paths of some pages are also divided into test and production environments.
location.href = "http://172.20.11.27/Login.aspx?RequestUrl=http:((db.xyz(";
location.href = "http://172.20.11.27/Login.aspx?RequestUrl=http:((dbtest.xyz("
this causes you to switch manually every time you run dev and run build. It"s easy to make mistakes.
you can configure such variables in webpack to use different environments in two cases. Thank you