0.0 前端优化,302标识短链添加/d前缀

This commit is contained in:
qaiu
2024-10-28 14:36:39 +08:00
parent 05039ece51
commit 155e88223c
11 changed files with 41 additions and 17 deletions

View File

@@ -15,12 +15,8 @@ module.exports = {
host: '127.0.0.1',
port: 6444,
proxy: {
'/api': {
'/': {
target: 'http://127.0.0.1:6400', // 请求本地
changeOrigin: true,
pathRewrite: {
'^/api': '/' //本身的接口地址没有 '/api' 这种通用前缀所以要rewrite如果本身有则去掉
},
ws: true
},
}