From 1d323287a1994a143746df1fc3de7616ead666dd Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 09 四月 2026 15:39:48 +0800
Subject: [PATCH] chore: 更新生产环境配置和部署路径
---
screen/src/view/planOfAudit/service.js | 2 +-
estate-frontend-v2024/config-overrides.js | 11 ++++++-----
screen/vue.config.js | 2 +-
estate-frontend-v2024/package.json | 2 +-
screen/.env.production | 10 ++++++----
estate-frontend-v2024/src/views/common/constants.js | 8 ++++----
screen/src/view/projectList/service.js | 2 +-
7 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/estate-frontend-v2024/config-overrides.js b/estate-frontend-v2024/config-overrides.js
index 13a0d8d..f5eb002 100644
--- a/estate-frontend-v2024/config-overrides.js
+++ b/estate-frontend-v2024/config-overrides.js
@@ -12,11 +12,12 @@
}
process.env.CI = "false";
const addCustomize = () => (config) => {
- if (config.output.publicPath) {
- config.output.publicPath =
- process.env.NODE_ENV === "production"
- ? "/"
- : "/";
+ if (config.output) {
+ if (process.env.NODE_ENV === "production") {
+ config.output.publicPath = "/manage/";
+ } else {
+ config.output.publicPath = "/";
+ }
}
if (config.resolve) {
config.resolve.extensions.push(".jsx");
diff --git a/estate-frontend-v2024/package.json b/estate-frontend-v2024/package.json
index e9560df..007268f 100644
--- a/estate-frontend-v2024/package.json
+++ b/estate-frontend-v2024/package.json
@@ -53,7 +53,7 @@
},
"scripts": {
"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired start",
- "build": "react-app-rewired --max-old-space-size=4096 build ",
+ "build": "set BUILD_PATH=manage && react-app-rewired --max-old-space-size=4096 build ",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"commit": "git cz"
diff --git a/estate-frontend-v2024/src/views/common/constants.js b/estate-frontend-v2024/src/views/common/constants.js
index bcab43e..c8ad36b 100644
--- a/estate-frontend-v2024/src/views/common/constants.js
+++ b/estate-frontend-v2024/src/views/common/constants.js
@@ -3,10 +3,10 @@
// 定义全局变量
// export const BASE_URL = 'http://47.93.28.249:8181'
-export const BASE_URL = 'http://221.182.45.100:8002';
-// export const BASE_URL = 'http://192.168.110.111:8080';
-export const SCREEN_URL = 'http://221.182.45.100:8087/#/';
-// export const SCREEN_URL = 'http://192.168.110.22:8087/#/';
+// export const BASE_URL = 'http://221.182.45.100:8002';测试
+export const BASE_URL = 'http://47.108.113.190:8182';
+// export const SCREEN_URL = 'http://221.182.45.100:8087/#/'; 测试
+export const SCREEN_URL = 'http://xllpgzx.com/screen/#/';
// export const BASE_URL = 'http://localhost:8080';
diff --git a/screen/.env.production b/screen/.env.production
index 1e38a53..79f0d13 100644
--- a/screen/.env.production
+++ b/screen/.env.production
@@ -1,11 +1,13 @@
# 生产环境配置
# 主API地址
-# VUE_APP_BASE_URL=http://221.182.45.100:8180
-VUE_APP_BASE_URL=http://192.168.110.64:9908
+VUE_APP_BASE_URL=http://47.108.113.190:9908
+# // 测试环境
+# VUE_APP_BASE_URL=http://192.168.110.64:9908
# 图片回显地址
VUE_APP_IMAGE_BASE_URL=http://221.182.45.100:8180
# 后台请求地址
-VUE_ADMIN_BASE_URL=http://221.182.45.100:8002
-
+VUE_ADMIN_BASE_URL=http://47.108.113.190:8182
+# 测试环境后台请求地址
+# VUE_ADMIN_BASE_URL=http://221.182.45.100:8002
diff --git a/screen/src/view/planOfAudit/service.js b/screen/src/view/planOfAudit/service.js
index 4b6da3e..e433871 100644
--- a/screen/src/view/planOfAudit/service.js
+++ b/screen/src/view/planOfAudit/service.js
@@ -3,7 +3,7 @@
// 创建专门用于文件流下载的 axios 实例
const reportRequest = axios.create({
- baseURL: 'http://221.182.45.100:8002' || process.env.VUE_ADMIN_BASE_URL,
+ baseURL: 'http://47.108.113.190:8182' || process.env.VUE_ADMIN_BASE_URL,
withCredentials: false,
timeout: 60000 // 文件下载可能需要更长时间
})
diff --git a/screen/src/view/projectList/service.js b/screen/src/view/projectList/service.js
index 71742c7..16ed102 100644
--- a/screen/src/view/projectList/service.js
+++ b/screen/src/view/projectList/service.js
@@ -3,7 +3,7 @@
// 创建专门用于文件流下载的 axios 实例
const reportRequest = axios.create({
- baseURL: 'http://221.182.45.100:8002' || process.env.VUE_ADMIN_BASE_URL,
+ baseURL: 'http://47.108.113.190:8182' || process.env.VUE_ADMIN_BASE_URL,
withCredentials: false,
timeout: 60000 // 文件下载可能需要更长时间
})
diff --git a/screen/vue.config.js b/screen/vue.config.js
index f819f26..ae70efd 100644
--- a/screen/vue.config.js
+++ b/screen/vue.config.js
@@ -6,7 +6,7 @@
chunkFilename: 'js/[name].[hash:8].js' // 配置打包后的chunk文件名
}
},
- publicPath: process.env.NODE_ENV === 'production' ? '/large' : '/',
+ publicPath: process.env.NODE_ENV === 'production' ? '/screen' : '/',
devServer: {
disableHostCheck: true
},
--
Gitblit v1.7.1