ユーザーの実績一覧を見れるように

This commit is contained in:
syuilo
2023-01-21 16:57:23 +09:00
parent 8dc0e0abbb
commit 3bf775c9a8
3 changed files with 68 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ import { definePageMetadata } from '@/scripts/page-metadata';
import { $i } from '@/account';
import { claimAchievement } from '@/scripts/achievements';
let timer;
let timer: number | null;
function viewAchievements3min() {
claimAchievement('viewAchievements3min');
@@ -26,8 +26,10 @@ onMounted(() => {
});
onUnmounted(() => {
window.clearTimeout(timer);
timer = null;
if (timer != null) {
window.clearTimeout(timer);
timer = null;
}
});
onActivated(() => {
@@ -35,8 +37,10 @@ onActivated(() => {
});
onDeactivated(() => {
window.clearTimeout(timer);
timer = null;
if (timer != null) {
window.clearTimeout(timer);
timer = null;
}
});
definePageMetadata({