This commit is contained in:
2023-07-03 22:16:52 +08:00
parent 6cfa15b7ee
commit cdef1eae90
9 changed files with 845 additions and 1 deletions

View File

@ -31,7 +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://192.168.0.201:8080",
target: "http://127.0.0.1:8080",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, ""),
},