diff --git a/src/components/sidebar-view/index.vue b/src/components/sidebar-view/index.vue index 75f87a7..0075eeb 100644 --- a/src/components/sidebar-view/index.vue +++ b/src/components/sidebar-view/index.vue @@ -13,6 +13,10 @@ const ctx = reactive({ function switchCategory(index) { ctx.current = index } + +function isCurrent(index) { + return index === ctx.current +}