This commit is contained in:
ThatOneCalculator 2022-11-07 00:36:53 -08:00
parent ef50eb3e64
commit 8a67e65ff9
2 changed files with 14 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.10",
"version": "12.119.0-calc.10.1",
"codename": "aqua",
"repository": {
"type": "git",

View file

@ -134,14 +134,19 @@ const drawerMenuShowing = ref(false);
mainRouter.on('change', () => {
drawerMenuShowing.value = false;
let routerState = mainRouter.currentRoute.value.name;
console.log(routerState);
const bottomButtons = ['index', 'notifications', 'messaging'];
bottomButtons.forEach(i => {
if (routerState?.includes(i) || window.location.href.includes(i)) {
buttonAnimIndex.value = bottomButtons.findIndex(j => j.includes(i));
}
});
const routerState = mainRouter.currentRoute.value.name;
if (routerState === 'index') {
buttonAnimIndex.value = 0;
}
else if (window.location.href.includes('my/notifications')) {
buttonAnimIndex.value = 1;
}
else if (window.location.href.includes('my/messaging')) {
buttonAnimIndex.value = 2;
}
else {
buttonAnimIndex.value = 3;
}
});
document.documentElement.style.overflowY = 'scroll';