修复API地址配置:localhost改为192.168.3.200服务器IP
This commit is contained in:
@@ -54,8 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
// },
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://192.168.3.200:8808',
|
||||
target: 'http://localhost:8808',
|
||||
target: 'http://192.168.3.200:8808',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user