From b7546ec7d8486e2f1542c1bbd590568f451f8309 Mon Sep 17 00:00:00 2001 From: 12451 <12451@example.com> Date: Thu, 2 Jul 2026 17:53:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AEvite=20base=E4=B8=BA/p?= =?UTF-8?q?ms/=EF=BC=8C=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx/app.anzhizhichong.com.conf | 9 +-------- software/web/vite.config.ts | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/deploy/nginx/app.anzhizhichong.com.conf b/deploy/nginx/app.anzhizhichong.com.conf index 43e1b37..4551f0c 100644 --- a/deploy/nginx/app.anzhizhichong.com.conf +++ b/deploy/nginx/app.anzhizhichong.com.conf @@ -39,14 +39,7 @@ server { return 301 /pms/; } - # PMS管理前端 - 静态资源 - location /pms/assets/ { - alias /data/pms/web/assets/; - expires 30d; - add_header Cache-Control "public, immutable"; - } - - # PMS管理前端 - 其他文件 + # PMS管理前端 location /pms/ { alias /data/pms/web/; try_files $uri $uri/ /pms/index.html; diff --git a/software/web/vite.config.ts b/software/web/vite.config.ts index b3f3095..472eedf 100644 --- a/software/web/vite.config.ts +++ b/software/web/vite.config.ts @@ -4,6 +4,7 @@ import tailwindcss from '@tailwindcss/vite' import path from 'path' export default defineConfig({ + base: '/pms/', plugins: [react(), tailwindcss()], resolve: { alias: {