mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
code refactor
This commit is contained in:
@@ -220,11 +220,11 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof(data.result.newToken) === 'string') {
|
||||
if (self.$utils.isString(data.result.newToken)) {
|
||||
self.$user.updateToken(data.result.newToken);
|
||||
}
|
||||
|
||||
if (typeof(data.result.user) === 'object') {
|
||||
if (self.$utils.isObject(data.result.user)) {
|
||||
self.$user.updateUserInfo(data.result.user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user