|
@@ -47,7 +47,9 @@ export default defineConfig(({ mode, command }) => {
|
|
|
// https://cn.vitejs.dev/config/#server-proxy
|
|
|
'/dev-api': {
|
|
|
target: 'http://localhost:8080',
|
|
|
- // target: 'http://192.168.3.169:8080',//临时11
|
|
|
+ // target: 'http://test.chuiinxgk.com',//服务器
|
|
|
+ // target: 'http://192.168.3.100:8080',//服务器
|
|
|
+
|
|
|
changeOrigin: true,
|
|
|
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
|
}
|