diff --git a/web/vite.config.ts b/web/vite.config.ts index 44490ee9..49fe06af 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -23,6 +23,7 @@ export default async ({ mode, command }) => { const proxyPrefix = env.VITE_PROXY_PREFIX return defineConfig({ + base: env.VITE_APP_ROOT_BASE, // 开发服务器选项 https://cn.vitejs.dev/config/#server-options server: { open: true,