This commit is contained in:
熊丽君
2022-03-01 17:57:20 +08:00
parent a8cc408e22
commit 96e9e64957
34 changed files with 2468 additions and 80 deletions

View File

@ -24,10 +24,12 @@ export default defineConfig(({ mode, command }) => {
open: true,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
target: 'http://localhost:8080',
'/api': {
// target: 'http://localhost:8080',
target: 'http://192.168.0.149:8000',
// target: 'http://zky.server.ipeace.org.cn',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
rewrite: (p) => p.replace(/^\/api/, '/api')
}
},
},