code refactor

This commit is contained in:
MaysWind
2021-01-04 23:52:57 +08:00
parent 5077b93105
commit b7589e57f2
20 changed files with 561 additions and 293 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ export default {
self.$webauthn.registerCredential(
self.$user.getUserAppLockState(),
self.$user.getUserInfo(),
self.$store.state.currentUserInfo,
).then(({ id }) => {
self.$hideLoading();
@@ -120,7 +120,7 @@ export default {
return;
}
const user = this.$user.getUserInfo();
const user = this.$store.state.currentUserInfo;
if (!user || !user.username) {
this.$alert('An error has occurred');