From 1b39d873ab95c89c6bc9cf68160c10c0a5b71cff Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 28 Jun 2026 10:37:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BB=9F=E4=B8=80=E5=89=8D=E7=AB=AF/H?= =?UTF-8?q?5=20=E6=9C=8D=E5=8A=A1=E5=9B=BA=E5=AE=9A=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - web: 5178 - web-admin: 5179 - mini-program: 5180 - life-script: 5181 --- life-script/.env.development | 1 + life-script/vite.config.js | 2 +- mini-program/.env.development | 1 + mini-program/vite.config.js | 2 +- web-admin/.env.development | 2 +- web-admin/vite.config.ts | 2 +- web/.env.development | 1 + web/vite.config.ts | 2 +- 8 files changed, 8 insertions(+), 5 deletions(-) diff --git a/life-script/.env.development b/life-script/.env.development index 88dd8d5..a71ed41 100644 --- a/life-script/.env.development +++ b/life-script/.env.development @@ -1,2 +1,3 @@ # 开发环境配置 VITE_API_BASE_URL=http://localhost:19089/api +VITE_PORT=5181 diff --git a/life-script/vite.config.js b/life-script/vite.config.js index 40d6534..a3792c9 100644 --- a/life-script/vite.config.js +++ b/life-script/vite.config.js @@ -8,6 +8,6 @@ export default defineConfig(({ mode }) => ({ // 生产环境使用 /life-script/ 路径,开发环境使用根路径 base: mode === 'production' ? '/life-script/' : '/', server: { - port: 3000 + port: 5181 } })) diff --git a/mini-program/.env.development b/mini-program/.env.development index f6f73be..92d2f87 100644 --- a/mini-program/.env.development +++ b/mini-program/.env.development @@ -10,3 +10,4 @@ VITE_APP_ENV=dev VITE_API_BASE_URL=https://lifescript.happylifeos.com/api VITE_WS_URL=wss://lifescript.happylifeos.com/ws VITE_DEBUG=true +VITE_PORT=5180 diff --git a/mini-program/vite.config.js b/mini-program/vite.config.js index 31dd64e..92534ba 100644 --- a/mini-program/vite.config.js +++ b/mini-program/vite.config.js @@ -42,7 +42,7 @@ export default defineConfig(({ command }) => { envDir: __dirname, publicDir: resolve(__dirname, 'static'), server: { - port: 5175, + port: 5180, watch: { usePolling: true, interval: 100 diff --git a/web-admin/.env.development b/web-admin/.env.development index 56e3469..875dd29 100644 --- a/web-admin/.env.development +++ b/web-admin/.env.development @@ -1,4 +1,4 @@ # 开发环境配置 VITE_APP_TITLE=情绪博物馆管理后台 VITE_APP_BASE_API=https://lifescript.happylifeos.com/api -VITE_APP_PORT=5174 +VITE_APP_PORT=5179 diff --git a/web-admin/vite.config.ts b/web-admin/vite.config.ts index e6b7e92..fff8939 100644 --- a/web-admin/vite.config.ts +++ b/web-admin/vite.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ } }, server: { - port: 5174, + port: 5179, proxy: { '/api': { target: 'https://lifescript.happylifeos.com', diff --git a/web/.env.development b/web/.env.development index a325c48..5125d84 100644 --- a/web/.env.development +++ b/web/.env.development @@ -14,3 +14,4 @@ VITE_MOCK=false # 其他配置 VITE_APP_DESCRIPTION=情绪博物馆Web系统 - 开发环境 +VITE_PORT=5178 diff --git a/web/vite.config.ts b/web/vite.config.ts index 59bd773..8d6f49a 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ global: 'globalThis', }, server: { - port: 5173, + port: 5178, open: true, proxy: { '/api': {