fix: 第一版普遍修复完成。

This commit is contained in:
c
2026-03-21 15:56:53 +08:00
parent d88701f4ee
commit cc87985576
17 changed files with 218 additions and 93 deletions

View File

@@ -53,14 +53,14 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
open: viteEnv.VITE_OPEN,
cors: true,
// 跨域代理配置
proxy: {
"/api": {
target: "https://vue3-design.teek.top",
changeOrigin: true,
secure: true, // 是否忽略 https 安全证书问题true 不忽略false 忽略
rewrite: path => path.replace(/^\/api/, ""),
},
},
// proxy: {
// "/api": {
// target: "https://vue3-design.teek.top",
// changeOrigin: true,
// secure: true, // 是否忽略 https 安全证书问题true 不忽略false 忽略
// rewrite: path => path.replace(/^\/api/, ""),
// },
// },
// 预热文件以提前转换和缓存结果,降低启动期间的初始页面加载时长并防止转换瀑布
warmup: {
clientFiles: ["./index.html", "./src/{views,components}/*"],