diff --git a/.gitignore b/.gitignore index 40df4749927f06e2a6a0422c0c1f979730f85a80..50df089fc0a0b626a3da8aec7fa307afec54efee 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 1df486e31bd109df246b71280fdf2b5e2d515dd3..af8ca2ce8586f0920ef7a06e79a7372fbda1127d 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,30 +1,31 @@ - - {{ tag.title }} - - - - + + + + {{ tag.title }} + + + + - 刷新页面 - 关闭当前 - 关闭其他 - 关闭左侧 - 关闭右侧 - 全部关闭 + 刷新页面 + 关闭当前 + 关闭其他 + 关闭左侧 + 关闭右侧 + 全部关闭 @@ -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(() => {