我们只需要在src根目录下创建.env.development和.env.production即可不需要后缀
.env.development
开发的生产变量 在使用npm run serve 时自动变更当前环境的值
注释符是#按ctrl+/是没用的
prot=798
VUE_APP_BASE_URL="代理基准地址路径"
VUE_APP_BASE_API="和基地址的代理对应"
.env.production
生产环境的变量,在使用npm run build打包命令时才会自动变更当前的环境
prot=798
VUE_APP_BASE_URL="代理基准地址路径"
VUE_APP_BASE_API="和基地址的代理对应"