接口前缀调整

This commit is contained in:
qsh
2024-05-23 18:07:49 +08:00
parent 33be215c0a
commit 8adaf72682
18 changed files with 124 additions and 84 deletions

View File

@@ -39,6 +39,12 @@ export default ({ command, mode }) => {
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/call-api`), '')
},
['/dev-api']: {
target: env.VITE_BASE_URL,
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/dev-api`), '')
}
}
},