From ac33fca814112116da857ab1c508ece56b255a23 Mon Sep 17 00:00:00 2001 From: rongxingsun Date: Wed, 24 Jul 2024 14:09:03 +0800 Subject: [PATCH] Update context.tpl --- packages/plugins/templates/keepalive/context.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/templates/keepalive/context.tpl b/packages/plugins/templates/keepalive/context.tpl index 0e9312db..a10ff8a0 100644 --- a/packages/plugins/templates/keepalive/context.tpl +++ b/packages/plugins/templates/keepalive/context.tpl @@ -443,7 +443,7 @@ export function useKeepOutlets() { {{#isNewTabsAPISupported}} items={Object.entries(keepElements.current).map(([pathname, {name, icon, closable, children, ...other}]: any) => ({ label: name, - icon: icon + icon: icon, key: `${pathname?.toLowerCase()}::${tabNameMap[pathname?.toLowerCase()]}`, closable: Object.entries(keepElements.current).length === 1 ? false : closable, {{#hasFixedHeader}}