修改配置文件

This commit is contained in:
lujiang 2024-08-29 11:12:18 +08:00
parent 45ee4039af
commit 52597044c2
4 changed files with 5 additions and 8 deletions

5
.env
View File

@ -1,4 +1 @@
NODE_ENV=production
VUE_APP_PREVIEW=false
VUE_APP_API_BASE_URL=/api
VUE_APP_MODEL_BASE_URL=https://www.chuangzhikj.com/saas-ics
NODE_ENV=production

View File

@ -1,4 +1,4 @@
NODE_ENV=production
VUE_APP_PREVIEW=true
VUE_APP_PREVIEW=false
VUE_APP_API_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand
VUE_APP_MODEL_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand

View File

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode preview",
"report": "vue-cli-service build --report",
"build:preview": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode preview",
"lint": "vue-cli-service lint",

View File

@ -110,8 +110,8 @@ const vueConfig = {
port: 8000,
proxy: {
'/api': {
target: 'http://192.168.0.30:9227',
// target: 'https://company.haxy.com.cn:4443/shoot-hand',
target: 'http://127.0.0.1:9227',
//target: 'https://company.haxy.com.cn:4443/shoot-hand',
pathRewrite: { '^/api': '' },
ws: false,
changeOrigin: true