From ae6db3ed3c102afb228267343bd4ce062506e91b Mon Sep 17 00:00:00 2001 From: zclzone Date: Sat, 17 Jun 2023 10:42:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20tag=E6=A0=87=E7=AD=BE=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/tags/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/layout/components/tags/index.vue b/src/layout/components/tags/index.vue index d6783ec..bd06a38 100644 --- a/src/layout/components/tags/index.vue +++ b/src/layout/components/tags/index.vue @@ -11,6 +11,9 @@ @close.stop="tagsStore.removeTag(tag.path)" @contextmenu.prevent="handleContextMenu($event, tag)" > + {{ tag.title }} { const { name, fullPath: path } = route const title = route.meta?.title - tagsStore.addTag({ name, path, title }) + const icon = route.meta?.icon + tagsStore.addTag({ name, path, title, icon }) }, { immediate: true } )