diff --git a/.gitignore b/.gitignore index 40df474..50df089 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ selenium-debug.log *.local package-lock.json +pnpm-lock.yaml yarn.lock # 编译生成的文件 diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 1df486e..af8ca2c 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,30 +1,31 @@ @@ -68,13 +69,6 @@ watch(visible, (value) => { const isActive = (r: TagView): boolean => { return r.path === route.path; } -const activeStyle = (tag: TagView) => { - if (!isActive(tag)) return {}; - return { - "background-color": theme.value, - "border-color": theme.value - }; -} const isAffix = (tag: TagView) => { return tag.meta && tag.meta.affix; } @@ -238,49 +232,62 @@ onMounted(() => {