修复req参数

This commit is contained in:
hanhh 2021-07-01 11:49:44 +08:00
parent f87d83dab2
commit 5135af261e

View File

@ -27,7 +27,7 @@ export default ({ app }: { app: Application }) => {
return next(); return next();
} }
} }
if (!headerToken && req.url && req.path === '/api/login') { if (!headerToken && req.path && req.path === '/api/login') {
return next(); return next();
} }
const err: any = new Error('UnauthorizedError'); const err: any = new Error('UnauthorizedError');