From 3e1fb8fde89397cb61bc6efe88b580165b7ac681 Mon Sep 17 00:00:00 2001 From: andatoshiki Date: Fri, 13 Sep 2024 04:50:10 -0700 Subject: [PATCH] fix(nav icon route): comment out custom blog page title section but omitting every route to return back to homepage on icon avoiding router does not reset on blog page refresh realoads & remove route is blog function to automatically detect whether user on client side is within blog dir location or not --- src/components/Navbar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 25c4459..5aea86b 100755 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -11,7 +11,7 @@ export default Vue.extend({ const path = this.$route.path if (path !== '/projects/premid' && path.startsWith('/projects/premid')) return '/projects/premid' - else if (this.routeIsBlog && this.$route.params?.slug) return '/blog' + else if (this.routeIsBlog && this.$route.params?.slug) return '/' else return '/' } } @@ -33,11 +33,11 @@ export default Vue.extend({ /> --> - +