From 2dad7cea0b7a988c6ac96eca711082f8ab08949a Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Thu, 24 Nov 2022 17:53:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D0=B2=D0=BD=D0=BE=D0=B9=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=81=D0=B0=D0=B9=D0=B4=D0=B1=D0=B0=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TheSidebar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TheSidebar.vue b/src/components/TheSidebar.vue index fe137f2..36b6c5a 100644 --- a/src/components/TheSidebar.vue +++ b/src/components/TheSidebar.vue @@ -32,7 +32,7 @@ export default { pageSettings: [ { id: "calendar", - path: "#/", + path: "#/calendar", active: true, icon: "icon-calendar-2", }, @@ -69,7 +69,7 @@ export default { mounted() { let href = window.location.href.slice(22); this.pageSettings.forEach((el, index) => { - el.path === href + el.path === href.substr(href.lastIndexOf("#")) ? (this.pageSettings[index].active = true) : (this.pageSettings[index].active = false); });