From 728b5958f347fbfd88ee625778645892c4231fb8 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sun, 1 Feb 2026 21:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E6=80=A7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/vite.config.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Yi.Ai.Vue3/vite.config.ts b/Yi.Ai.Vue3/vite.config.ts index b3922c3a..7d4fcbd0 100644 --- a/Yi.Ai.Vue3/vite.config.ts +++ b/Yi.Ai.Vue3/vite.config.ts @@ -139,16 +139,16 @@ export default defineConfig((cnf) => { }, // 实验性功能 - experimental: { - // 启用渲染内联 CSS(提高首次加载速度) - renderBuiltUrl(filename, { hostType }) { - // 生产环境使用相对路径 - if (hostType === 'js') { - return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` }; - } - return { relative: true }; - }, - }, + // experimental: { + // // 启用渲染内联 CSS(提高首次加载速度) + // renderBuiltUrl(filename, { hostType }) { + // // 生产环境使用相对路径 + // if (hostType === 'js') { + // return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` }; + // } + // return { relative: true }; + // }, + // }, server: { port: 17001,