gaaah
This commit is contained in:
parent
ef50eb3e64
commit
8a67e65ff9
2 changed files with 14 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.10",
|
"version": "12.119.0-calc.10.1",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -134,14 +134,19 @@ const drawerMenuShowing = ref(false);
|
||||||
|
|
||||||
mainRouter.on('change', () => {
|
mainRouter.on('change', () => {
|
||||||
drawerMenuShowing.value = false;
|
drawerMenuShowing.value = false;
|
||||||
let routerState = mainRouter.currentRoute.value.name;
|
const routerState = mainRouter.currentRoute.value.name;
|
||||||
console.log(routerState);
|
if (routerState === 'index') {
|
||||||
const bottomButtons = ['index', 'notifications', 'messaging'];
|
buttonAnimIndex.value = 0;
|
||||||
bottomButtons.forEach(i => {
|
}
|
||||||
if (routerState?.includes(i) || window.location.href.includes(i)) {
|
else if (window.location.href.includes('my/notifications')) {
|
||||||
buttonAnimIndex.value = bottomButtons.findIndex(j => j.includes(i));
|
buttonAnimIndex.value = 1;
|
||||||
|
}
|
||||||
|
else if (window.location.href.includes('my/messaging')) {
|
||||||
|
buttonAnimIndex.value = 2;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
buttonAnimIndex.value = 3;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.documentElement.style.overflowY = 'scroll';
|
document.documentElement.style.overflowY = 'scroll';
|
||||||
|
|
Loading…
Reference in a new issue