This commit is contained in:
2026-10-25 23:20:48 +08:00
parent 4e9f3dcb13
commit c178ea5160
5 changed files with 3492 additions and 37 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ export function mockPlugin(enabled = true): Plugin {
}
res.setHeader('Content-Type', 'application/json;charset=utf-8')
res.end(JSON.stringify({ code: '00000', data: rule.handler(ctx) ?? null, msg: 'success' }))
res.end(
JSON.stringify({ code: '00000', data: rule.handler(ctx) ?? null, msg: 'success' }),
)
})()
})
},