mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复req参数
This commit is contained in:
parent
f9c1dfc8cb
commit
4bc1deda42
|
@ -27,7 +27,7 @@ export default ({ app }: { app: Application }) => {
|
|||
return next();
|
||||
}
|
||||
}
|
||||
if (!headerToken && req.url && req.path === '/api/login') {
|
||||
if (!headerToken && req.path && req.path === '/api/login') {
|
||||
return next();
|
||||
}
|
||||
const err: any = new Error('UnauthorizedError');
|
||||
|
|
Loading…
Reference in New Issue
Block a user