chore
This commit is contained in:
@@ -25,6 +25,7 @@ export default defineConfig((/* { command, mode } */) => {
|
||||
target,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => {
|
||||
console.log(new Date().toLocaleString());
|
||||
console.log(`请求路径: ${path}`);
|
||||
const rewrittenPath = path.replace(new RegExp(`^${prefix}`), '');
|
||||
console.log(`将代理到: ${target}${rewrittenPath}`);
|
||||
|
||||
Reference in New Issue
Block a user