From 58d7e50de3432a4772ec0749661ec1f51c9c6086 Mon Sep 17 00:00:00 2001 From: NickLuo <69481226@qq.com> Date: 星期三, 13 十二月 2023 08:55:46 +0800 Subject: [PATCH] !63 关闭动态路由tab页签时不清理组件缓存 * 动态路由页面关闭时不清理组件缓存,避免清理已打开的多个路由页面缓存 --- src/layout/components/Sidebar/SidebarItem.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 204b19b..4459cdf 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -18,8 +18,8 @@ </template> <sidebar-item - v-for="(child) in item.children as RouteOption[]" - :key="child.path" + v-for="(child, index) in item.children" + :key="child.path + index" :is-nest="true" :item="child" :base-path="resolvePath(child.path)" -- Gitblit v1.9.3