fix: wrong path judgement
This commit is contained in:
@@ -3,7 +3,7 @@ const he = require('he');
|
||||
module.exports = async (ctx, next) => {
|
||||
await next();
|
||||
|
||||
if (!ctx._matchedRoute) {
|
||||
if (!ctx.state.data && !ctx._matchedRoute) {
|
||||
throw Error('wrong path');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user