addapi
This commit is contained in:
@@ -5,4 +5,13 @@ export default defineConfig({
|
||||
plugins: [
|
||||
uni(),
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://192.168.1.7:8088', // 请替换为你的实际后端服务器地址
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user