前端重构

This commit is contained in:
Yvan
2026-01-08 12:04:47 +08:00
parent f12f2e0f00
commit b0eb4c2fc3
24 changed files with 546 additions and 121 deletions
+2
View File
@@ -174,4 +174,6 @@ export default defineConfig({
define: {
"process.env.CI": process.env.CI,
},
// 修复 esbuild helper 冲突警告
esbuildMinifyIIFE: true,
});
+4 -3
View File
@@ -15,9 +15,10 @@ export default {
* @doc https://github.com/chimurai/http-proxy-middleware
*/
dev: {
"/v1/": {
target: "http://localhost:8000",
"/api/": {
target: "http://localhost:8888",
changeOrigin: true,
},
pathRewrite: { "^/api": "" },
}
},
};