This commit is contained in:
2023-07-04 09:30:46 +08:00
parent cdef1eae90
commit 8f3fd3579b
10 changed files with 585 additions and 401 deletions

View File

@ -31,8 +31,8 @@ export default defineConfig(({ mode, command }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
"/dev-api": {
//target: "http://192.168.0.201:8080",
target: "http://127.0.0.1:8080",
target: "http://192.168.0.201:8080",
// target: "http://127.0.0.1:8080",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, ""),
},