mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复req参数
This commit is contained in:
1 parent
f9c1dfc8cb
commit
4bc1deda42
1 file changed
+1
-1
@@ -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