This commit is contained in:
2023-05-30 17:37:27 +08:00
parent 039afc308a
commit e801f51723
3 changed files with 347 additions and 1 deletions

View File

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