This commit is contained in:
2026-02-08 16:56:41 +08:00
parent 9e0b38a6d5
commit 3eb3636b22
109 changed files with 6603 additions and 2118 deletions

View File

@@ -16,8 +16,9 @@ export default defineConfig({
proxy: {
"/api/v1": {
target: "http://127.0.0.1:8888", // 本地接口地址
// target: "https://onecha.cn", // 本地接口地址
// target: "https://www.onecha.cn", // 修改为带 www 的域名,避免 301 重定向
changeOrigin: true,
rewrite: (path) => path, // 可选:确保路径不被修改
},
},
},