From 908555743c2c36d7e13a129f4ad78f3f69602489 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 16 十月 2025 09:14:17 +0800
Subject: [PATCH] 生产管控-生产订单添加随机排产功能
---
vite.config.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index d3d9b6d..2dd68fa 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,17 +2,22 @@
import path from 'path'
import createVitePlugins from './vite/plugins'
-const baseUrl = 'http://localhost:8080' // 鍚庣鎺ュ彛
+// const baseUrl = 'http://114.132.189.42:7016' // 鍚庣鎺ュ彛
+// const baseUrl = 'http://114.132.189.42:7016'
// https://vitejs.dev/config/
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd())
const { VITE_APP_ENV } = env
+ const baseUrl =
+ env.VITE_APP_ENV === "development"
+ ? "http://114.132.189.42:7016"
+ : env.VITE_BASE_API;
return {
// 閮ㄧ讲鐢熶骇鐜鍜屽紑鍙戠幆澧冧笅鐨刄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