This commit is contained in:
Chengliang 2023-06-25 16:12:59 +08:00
parent 40ca0f4220
commit 7f706f49a2
1 changed files with 0 additions and 1 deletions

View File

@ -27,7 +27,6 @@ export default defineConfig({
'/api': {
// 标识需要进行转换的请求的url
target: 'http://127.0.0.1:8686/api', // 服务端域名 / http://localhost:8686
target: 'http://localhost:8686/api', // 服务端域名 / http://localhost:8686
changeOrigin: true, // 允许域名进行转换
pathRewrite: { '^/api': '' }, // 将请求url里的ci去掉
},