fix: keepAlive not working for popup appendToMain (#5666)

* 修复弹窗和抽屉 `appendToMain` 时且启用`keepAlive` 时未能正确缓存的问题
This commit is contained in:
Netfan
2025-03-06 22:22:45 +08:00
committed by GitHub
parent 31a6ab59fb
commit f86c9f90ad
7 changed files with 23 additions and 4 deletions

View File

@@ -213,6 +213,7 @@ const routes: RouteRecordRaw[] = [
component: () => import('#/views/examples/modal/index.vue'),
meta: {
icon: 'system-uicons:window-content',
keepAlive: true,
title: $t('examples.modal.title'),
},
},
@@ -222,6 +223,7 @@ const routes: RouteRecordRaw[] = [
component: () => import('#/views/examples/drawer/index.vue'),
meta: {
icon: 'iconoir:drawer',
keepAlive: true,
title: $t('examples.drawer.title'),
},
},