优化登录身份缓存机制
This commit is contained in:
@@ -96,6 +96,10 @@ const loginService = {
|
||||
|
||||
if (authInfo) {
|
||||
|
||||
if (authInfo.tokens.length > 10) {
|
||||
authInfo.tokens.shift();
|
||||
}
|
||||
|
||||
authInfo.tokens.push(uuid);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user