mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
code refactor
This commit is contained in:
@@ -144,8 +144,8 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof(data.result) === 'object') {
|
||||
self.$user.updateToken(data.result);
|
||||
if (typeof(data.result.token) === 'string') {
|
||||
self.$user.updateTokenAndUserInfo(data.result);
|
||||
}
|
||||
|
||||
self.$toast('You have been successfully registered');
|
||||
|
||||
Reference in New Issue
Block a user