mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
code refactor
This commit is contained in:
@@ -81,7 +81,7 @@ export default {
|
||||
|
||||
webauthn.registerCredential(
|
||||
self.$user.getUserAppLockState(),
|
||||
self.userStore.currentUserInfo,
|
||||
self.userStore.currentUserBasicInfo,
|
||||
).then(({ id }) => {
|
||||
self.$hideLoading();
|
||||
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const user = this.userStore.currentUserInfo;
|
||||
const user = this.userStore.currentUserBasicInfo;
|
||||
|
||||
if (!user || !user.username) {
|
||||
this.$alert('An error occurred');
|
||||
|
||||
Reference in New Issue
Block a user