In vue, you need to access interfaces under different domain names according to different features. How to configure cross-domain interfaces?

using proxyTable can only write all domain names in index.js, how to dynamically change the domain name of the interface?


write a public configuration file


proxyTable can write matching rules
such as / v1/xxx directs to www.xxx.com
/ v2/xxx directs to www.yyy.com

Menu