fix: 隐藏文件上传按钮,去除不必要的log打印
This commit is contained in:
@@ -39,7 +39,6 @@ export default defineConfig((cnf) => {
|
||||
bypass(req, res, options) {
|
||||
//@ts-ignore
|
||||
const proxyUrl = new URL(options.rewrite(req.url) || '',(options.target)as string)?.href || '';
|
||||
console.log(proxyUrl);
|
||||
req.headers['x-req-proxyUrl'] = proxyUrl
|
||||
res.setHeader('x-res-proxyUrl',proxyUrl)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user