From ce5a0c8c98f7a702bc54585ac0557010a76ad98d Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 7 Nov 2022 00:21:54 -0800 Subject: [PATCH] am i dumb --- package.json | 2 +- packages/client/src/ui/universal.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 82e3b2fc5..58482a94c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.9.10", + "version": "12.119.0-calc.9.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 1fd51c539..e141126d7 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -107,7 +107,7 @@ window.addEventListener('resize', () => { isMobile.value = deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD; }); -let buttonAnimIndex = 0; +let buttonAnimIndex = ref(0); let pageMetadata = $ref>(); const widgetsEl = $ref(); @@ -124,7 +124,7 @@ provideMetadataReceiver((info) => { const menuIndicated = computed(() => { for (const def in navbarItemDef) { - // if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから + if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから if (navbarItemDef[def].indicated) return true; } return false; @@ -138,8 +138,8 @@ mainRouter.on('change', () => { console.log(routerState); const bottomButtons = ['index', 'notifications', 'messaging']; bottomButtons.forEach(i => { - if (routerState.includes(i)) { - buttonAnimIndex = bottomButtons.findIndex(j => j.includes(i)); + if (routerState?.includes(i)) { + buttonAnimIndex.value = bottomButtons.findIndex(j => j.includes(i)); } }); });