code refactor

This commit is contained in:
MaysWind
2025-01-05 21:39:39 +08:00
parent 49f1f3c86b
commit 6dc0ebcac6
22 changed files with 279 additions and 229 deletions
+2 -1
View File
@@ -203,6 +203,7 @@ import {
getUnixTimeBeforeUnixTime,
getUnixTimeAfterUnixTime
} from '@/lib/datetime.ts';
import { isUserLogined, isUserUnlocked } from '@/lib/userstate.ts';
import {
mdiRefresh,
@@ -348,7 +349,7 @@ export default {
}
},
created() {
if (this.$user.isUserLogined() && this.$user.isUserUnlocked()) {
if (isUserLogined() && isUserUnlocked()) {
this.reload(false);
}
},