fix(mobile): 修复移动端API路径与后端对接

This commit is contained in:
2026-06-19 12:25:47 +08:00
parent 99812e1bf0
commit 686fcb5692
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios'
const request = axios.create({
baseURL: '/healthlink-his/api/v1',
baseURL: '/dev-api',
timeout: 10000
})

View File

@@ -6,9 +6,10 @@ export default defineConfig({
server: {
port: 82,
proxy: {
'/healthlink-his': {
target: 'http://localhost:18082',
changeOrigin: true
'/dev-api': {
target: 'http://localhost:18082/healthlink-his',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}
}
},