From 2e17f2f277871ab67ed6c8cf86204bcef9629b6b Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 03 四月 2026 11:31:46 +0800
Subject: [PATCH] 德瑞斯 修改本地后端地址
---
vite.config.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index f73f535..c993238 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,11 +8,11 @@
const { VITE_APP_ENV } = env;
const baseUrl =
env.VITE_APP_ENV === "development"
- ? "http://192.168.1.147:9036"
+ ? "http://1.15.17.182:9025"
: env.VITE_BASE_API;
const javaUrl =
env.VITE_APP_ENV === "development"
- ? "http://114.132.189.42:9037"
+ ? "http://1.15.17.182:9025"
: env.VITE_JAVA_API;
return {
define:{
@@ -23,6 +23,9 @@
// 渚嬪 https://www.ruoyi.vip/銆傚鏋滃簲鐢ㄨ閮ㄧ讲鍦ㄤ竴涓瓙璺緞涓婏紝浣犲氨闇�瑕佺敤杩欎釜閫夐」鎸囧畾杩欎釜瀛愯矾寰勩�備緥濡傦紝濡傛灉浣犵殑搴旂敤琚儴缃插湪 https://www.ruoyi.vip/admin/锛屽垯璁剧疆 baseUrl 涓� /admin/銆�
base: VITE_APP_ENV === "production" ? "/" : "/",
plugins: createVitePlugins(env, command === "build"),
+ optimizeDeps: {
+ include: ["@vue-office/docx", "@vue-office/excel"],
+ },
resolve: {
// https://cn.vitejs.dev/config/#resolve-alias
alias: {
@@ -51,7 +54,7 @@
},
// vite 鐩稿叧閰嶇疆
server: {
- port: 80,
+ port: 8080,
host: true,
open: true,
proxy: {
--
Gitblit v1.9.3