更新登录功能

This commit is contained in:
Eamon
2026-08-13 18:28:20 +08:00
parent 115ee3bfeb
commit 4235458bea
25 changed files with 1900 additions and 873 deletions

View File

@@ -11,4 +11,18 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": "http://192.168.3.6:5000",
"/user": "http://192.168.3.6:5000",
"/product": {
target: "http://192.168.3.6:5000",
bypass(req) {
if (req.headers?.accept?.includes("text/html")) {
return "/index.html"
}
},
},
},
},
})