点赞收藏功能细化,问题修复
This commit is contained in:
@@ -84,6 +84,7 @@ defineExpose({
|
||||
|
||||
// 根据当前路由判断激活的导航项
|
||||
const currentRoute = computed(() => {
|
||||
if (!route || !route.path) return 'home'
|
||||
const path = route.path
|
||||
if (path === '/') return 'home'
|
||||
if (path === '/products') return 'products'
|
||||
|
||||
Reference in New Issue
Block a user