mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
fix error when controller or action is not valid
This commit is contained in:
parent
6516ea251a
commit
a1f928d9fd
@ -53,7 +53,7 @@ export default class extends think.middleware.base {
|
||||
return this.parseRules(rules[module].children);
|
||||
}
|
||||
}
|
||||
this.parsePathname();
|
||||
return this.parsePathname();
|
||||
}
|
||||
/**
|
||||
* parse array rules
|
||||
@ -86,7 +86,7 @@ export default class extends think.middleware.base {
|
||||
return this.parseRoute(route);
|
||||
}
|
||||
}
|
||||
this.parsePathname();
|
||||
return this.parsePathname();
|
||||
}
|
||||
/**
|
||||
* remove / start | end of pathname
|
||||
@ -242,7 +242,7 @@ export default class extends think.middleware.base {
|
||||
route = route.slice(1);
|
||||
}
|
||||
this.http.pathname = route;
|
||||
this.parsePathname();
|
||||
return this.parsePathname();
|
||||
}
|
||||
/**
|
||||
* parse regexp rule
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user