From 3b8eb6c197885faba45faf064e5b034a9cc853bf Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 03 七月 2026 11:58:29 +0800
Subject: [PATCH] 配置调整

---
 .env.staging     |    8 +++++++-
 .env.development |    5 ++++-
 vue.config.js    |    4 ++--
 src/main.js      |    3 ++-
 .env.production  |    5 ++++-
 5 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/.env.development b/.env.development
index 55af45f..88b0e34 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
 # 椤甸潰鏍囬
-VUE_APP_TITLE = LIMS瀹為獙瀹ょ鐞嗙郴缁�
+VUE_APP_TITLE = 涓ぉ鑰愪笣LIMS
 
 # 寮�鍙戠幆澧冮厤缃�
 ENV = 'development'
@@ -7,5 +7,8 @@
 # LIMS瀹為獙瀹ょ鐞嗙郴缁�/寮�鍙戠幆澧�
 VUE_APP_BASE_API = '/dev-api'
 
+# 鏈湴鐜ip+绔彛
+VUE_APP_BASE_URL = 'http://127.0.0.1:7002/lims'
+
 # 璺敱鎳掑姞杞�
 VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/.env.production b/.env.production
index 23d226f..7d39021 100644
--- a/.env.production
+++ b/.env.production
@@ -1,8 +1,11 @@
 # 椤甸潰鏍囬
-VUE_APP_TITLE = LIMS瀹為獙瀹ょ鐞嗙郴缁�
+VUE_APP_TITLE = 涓ぉ鑰愪笣LIMS
 
 # 鐢熶骇鐜閰嶇疆
 ENV = 'production'
 
 # LIMS瀹為獙瀹ょ鐞嗙郴缁�/鐢熶骇鐜
 VUE_APP_BASE_API = '/prod-api'
+
+# 鐢熶骇鐜ip+绔彛
+VUE_APP_BASE_URL = 'http://192.168.21.53:7002/lims'
diff --git a/.env.staging b/.env.staging
index cfef21d..cd48b44 100644
--- a/.env.staging
+++ b/.env.staging
@@ -1,5 +1,5 @@
 # 椤甸潰鏍囬
-VUE_APP_TITLE = LIMS瀹為獙瀹ょ鐞嗙郴缁�
+VUE_APP_TITLE = 涓ぉ鑰愪笣LIMS
 
 BABEL_ENV = production
 
@@ -10,3 +10,9 @@
 
 # LIMS瀹為獙瀹ょ鐞嗙郴缁�/娴嬭瘯鐜
 VUE_APP_BASE_API = '/stage-api'
+
+# 娴嬭瘯鐜ip+绔彛
+VUE_APP_BASE_URL = http://127.0.0.1:7002/lims
+
+# 杩愯绔彛
+PORT= '80'
diff --git a/src/main.js b/src/main.js
index 2647808..1d54aa1 100644
--- a/src/main.js
+++ b/src/main.js
@@ -67,7 +67,8 @@
 Vue.prototype.HaveJson = (val) => {
   return JSON.parse(JSON.stringify(val));
 };
-Vue.prototype.javaApi = process.env.NODE_ENV === "production"?"http://192.168.21.53:7002/lims":"http://127.0.0.1:7002";
+// Vue.prototype.javaApi = process.env.NODE_ENV === "production"?"http://192.168.21.53:7002/lims":"http://127.0.0.1:7002/lims";
+Vue.prototype.javaApi = process.env.VUE_APP_BASE_URL && process.env.NODE_ENV==='production'?process.env.VUE_APP_BASE_URL : "http://127.0.0.1:7002/lims";
 Vue.prototype.checkPermi = checkPermi;
 Vue.prototype.uploadHeader = {
   Authorization: "Bearer " + getToken(),
diff --git a/vue.config.js b/vue.config.js
index dc08f77..cd52b0b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -7,7 +7,7 @@
 
 const CompressionPlugin = require("compression-webpack-plugin");
 
-const name = process.env.VUE_APP_TITLE || "鑻ヤ緷绠$悊绯荤粺"; // 缃戦〉鏍囬
+const name = process.env.VUE_APP_TITLE || "LIMS瀹為獙瀹ょ鐞嗙郴缁�"; // 缃戦〉鏍囬
 
 const port = process.env.port || process.env.npm_config_port || 80; // 绔彛
 
@@ -36,7 +36,7 @@
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:7002`,
+        target: `http://127.0.0.1:7002/lims`,
         changeOrigin: true,
         pathRewrite: {
           ["^" + process.env.VUE_APP_BASE_API]: "",

--
Gitblit v1.9.3