Merge branch 'feature/cl'

pull/5/head
Chengliang 2 years ago
commit 40ca0f4220

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

Loading…
Cancel
Save