diff --git a/.env b/.env index 270cde7..995fca4 100644 --- a/.env +++ b/.env @@ -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 \ No newline at end of file +NODE_ENV=production \ No newline at end of file diff --git a/.env.preview b/.env.preview index ea405b4..9e3156b 100644 --- a/.env.preview +++ b/.env.preview @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 190772b..9a14751 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vue.config.js b/vue.config.js index 0125672..25debff 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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