fix: wrong path judgement
This commit is contained in:
parent
b9ab52a0d5
commit
2f1aeb4d84
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue