From aa2210a9fec0e32df76e54e9e4e7a7110af2fd1e Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 18 七月 2025 15:55:00 +0800 Subject: [PATCH] 1.巡检上传-提交字段修改 --- vite.config.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 0e851b1..80e2c50 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,11 @@ import path from 'path' import createVitePlugins from './vite/plugins' -const baseUrl = 'http://localhost:8081' // 鍚庣鎺ュ彛 +const baseUrl = 'http://114.132.189.42:7016' // 鍚庣鎺ュ彛 +// const baseUrl = 'http://114.132.189.42:7016' +// const baseUrl = 'http://10.42.128.207:7016' // 鍚庣鎺ュ彛 +// const baseUrl = 'http://192.168.1.144:7016' // 鍚庣鎺ュ彛 +// const baseUrl = 'http://10.36.17.159:7016' // 鍚庣鎺ュ彛 // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => { @@ -12,7 +16,7 @@ // 閮ㄧ讲鐢熶骇鐜鍜屽紑鍙戠幆澧冧笅鐨刄RL銆� // 榛樿鎯呭喌涓嬶紝vite 浼氬亣璁句綘鐨勫簲鐢ㄦ槸琚儴缃插湪涓�涓煙鍚嶇殑鏍硅矾寰勪笂 // 渚嬪 https://www.ruoyi.vip/銆傚鏋滃簲鐢ㄨ閮ㄧ讲鍦ㄤ竴涓瓙璺緞涓婏紝浣犲氨闇�瑕佺敤杩欎釜閫夐」鎸囧畾杩欎釜瀛愯矾寰勩�備緥濡傦紝濡傛灉浣犵殑搴旂敤琚儴缃插湪 https://www.ruoyi.vip/admin/锛屽垯璁剧疆 baseUrl 涓� /admin/銆� - base: VITE_APP_ENV === 'production' ? '/' : '/', + base: VITE_APP_ENV === 'production' ? './' : './', plugins: createVitePlugins(env, command === 'build'), resolve: { // https://cn.vitejs.dev/config/#resolve-alias -- Gitblit v1.9.3