董国庆
2026-04-09 1d323287a1994a143746df1fc3de7616ead666dd
chore: 更新生产环境配置和部署路径

- 将前端项目的生产环境 API 地址和后台请求地址更新为新的服务器地址
- 修改大屏应用的生产环境公共路径从 '/large' 更改为 '/screen'
- 配置 estate-frontend-v2024 项目的构建输出路径为 'manage' 目录
- 更新相关服务的 baseURL 以指向新的生产环境端点
7个文件已修改
37 ■■■■■ 已修改文件
estate-frontend-v2024/config-overrides.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
estate-frontend-v2024/package.json 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
estate-frontend-v2024/src/views/common/constants.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/.env.production 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/planOfAudit/service.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/projectList/service.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/vue.config.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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");
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"
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';
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
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 // 文件下载可能需要更长时间
})
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 // 文件下载可能需要更长时间
})
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
  },