code refactor

This commit is contained in:
MaysWind
2024-07-14 18:14:08 +08:00
parent 46a7cd441f
commit 184dad8185
7 changed files with 36 additions and 36 deletions
@@ -107,7 +107,7 @@ export default {
webauthn.registerCredential(
self.$user.getUserAppLockState(),
self.userStore.currentUserInfo,
self.userStore.currentUserBasicInfo,
).then(({ id }) => {
self.enablingWebAuthn = false;
@@ -158,7 +158,7 @@ export default {
return;
}
const user = this.userStore.currentUserInfo;
const user = this.userStore.currentUserBasicInfo;
if (!user || !user.username) {
this.pinCode = '';