设置ENV 和 VUE_APP_BASE_APInpm
# just a flag ENV = 'development' # base api 开发环境的api VUE_APP_BASE_API = 'http://127.0.0.1:50001/' // 你本地的api
baseURL: process.env.VUE_APP_BASE_API
到此完成开发环境配置,执行npm run dev时api自动使用.env.development的api
# just a flag ENV = 'production' # base api VUE_APP_BASE_API = 'http://xx.xxx.xx.xx:xxx/' // 你的生产环境api