This commit is contained in:
quantulr
2023-10-18 17:24:11 +08:00
parent 9c5dd0656a
commit f2878af4b3
5 changed files with 23 additions and 8 deletions

View File

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