This commit is contained in:
2023-05-24 11:07:48 +08:00
parent cc981fc956
commit ac6ec65bcc
10 changed files with 466 additions and 122 deletions

View File

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