From 33aea5b45a126b9ea88e607bc644933e2c8135f9 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 6 Nov 2022 23:53:31 -0800 Subject: [PATCH] typo --- package.json | 2 +- packages/client/src/ui/universal.vue | 20 ++++++++------------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 1b765deb7a..5753b78f26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.9.4", + "version": "12.119.0-calc.9.5", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index f14d5d5545..d9fcb5ddac 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -107,21 +107,17 @@ window.addEventListener('resize', () => { isMobile.value = deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD; }); -const props = defineProps<{ - buttonAnimIndex: number; -}>(); +let buttonAnimIndex: number; watch($$(mainRouter.currentRoute.value.name), () => { let routerState = mainRouter.currentRoute.value.name; - const bottomButtons = ['index', 'notifications', 'messaging']; - bottomButtons.forEach(i => { - if (routerState.includes(i)) { - props.buttonAnimIndex = bottomButtons.findIndex(e => e.includes(i)) - } - }); - } -); - + const bottomButtons = ['index', 'notifications', 'messaging']; + bottomButtons.forEach(i => { + if (routerState.includes(i)) { + buttonAnimIndex = bottomButtons.findIndex(j => j.includes(i)); + } + }); +}); let pageMetadata = $ref>(); const widgetsEl = $ref();