init
This commit is contained in:
+3
-1
@@ -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' }),
|
||||
)
|
||||
})()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user