mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
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