This commit is contained in:
WanP
2025-10-27 15:03:40 +08:00
parent 45ceb9c77d
commit 5eb5c59e4b
18 changed files with 1340 additions and 636 deletions

View File

@@ -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')
}
}
}
})