.env.production 591 Bytes
# NODE_ENV=production
# VUE_APP_ENV=production
# outputDir=dist
# VUE_APP_API_BASE_URL=http://192.168.1.166:8080/wms
# VUE_APP_CAS_BASE_URL=http://localhost:8443/cas
# VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

# 创建新的生产环境配置文件
NODE_ENV=production
VUE_APP_ENV=production
outputDir=dist

# 关键修改:使用相对路径,不要用绝对IP
VUE_APP_API_BASE_URL=/wms

# 或者使用Nginx代理的路径
#VUE_APP_API_BASE_URL=/wms/api

VUE_APP_CAS_BASE_URL=http://localhost:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview