1. Create the config.js file under the public file
2. Modify the config.js file
var PLATFROM_CONFIG = {}; Platfrom_config. baseUrl = "server address" platfrom_config. baseUrl = "server address"Copy the code
3. In the packaged AXIos to modify, mine is
4. Add it to public index.html
5. Packaged directory
6. Change the server address in the packed config.js file
Reprinted from: https://blog.csdn.net/weixin_42776111/article/details/113878274