BUG修复,返回结构统一
This commit is contained in:
@@ -93,7 +93,9 @@ const navigate = (target: string) => {
|
||||
const updateActiveNav = () => {
|
||||
const path = route.path
|
||||
if (path === '/') activeNav.value = 'home'
|
||||
else if (path === '/blog') activeNav.value = 'blog'
|
||||
else if (path === '/blog' || path.startsWith('/blog/')) activeNav.value = 'blog'
|
||||
else if (path === '/columns' || path.startsWith('/columns/')) activeNav.value = 'columns'
|
||||
else if (path === '/categories' || path.startsWith('/categories/')) activeNav.value = 'categories'
|
||||
else if (path === '/works' || path.startsWith('/works/')) activeNav.value = 'works'
|
||||
else if (path === '/snippets') activeNav.value = 'snippets'
|
||||
else if (path === '/services') activeNav.value = 'services'
|
||||
|
||||
Reference in New Issue
Block a user