mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复req参数
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user