From 15ad33aa8226c650df7d564dab9e3f96f903ced7 Mon Sep 17 00:00:00 2001 From: wangchengming <15110151257@163.com> Date: Fri, 13 Dec 2024 10:20:08 +0800 Subject: [PATCH] 1 --- src/components/NavBar.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 95e36cb..79a869a 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -29,7 +29,7 @@ :key="menu.path" class="nav-menu" :class="{ 'current-route': $route.path.startsWith(menu.path) && menu.path !== '/' }" - @click.stop="menu.children || $router.push({ path: menu.hash ? '' : menu.path , hash: menu?.hash || ''})" + @click.stop="menu.children || menu.jump ? winOpen(menu.jump) : $router.push({ path: menu.hash ? '' : menu.path , hash: menu?.hash || ''})" > {{ menu.title }}