fix: 修改pageSize和pageIndex的默认值

This commit is contained in:
chaosBreaking
2019-09-07 15:32:56 +08:00
parent cc4e4eb7f7
commit 403da58e78
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = {
res.locals.user = deToken.data;
// 换发新token,存在问题:如果上一个token没过期,其他人截获了的话,会不会被盗用?
res.set('token', createToken({
userId: deToken.userId
userId: deToken.data.userId
}, JWT_SECRET, {}));
return next();
}