ユーザーの実績一覧を見れるように
This commit is contained in:
parent
8dc0e0abbb
commit
3bf775c9a8
3 changed files with 68 additions and 6 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue