mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
fix: 修复plugin-layout把未缓存页面当做undefined丢进缓存列表出现的问题
This commit is contained in:
parent
1c786032aa
commit
5a18b7dd72
@ -49,7 +49,7 @@ export default defineComponent({
|
||||
// 此时route已变,但是页面还未加载
|
||||
const name = changePageComName(route);
|
||||
// 缓存的关键是组件name在keep-alive的include列表
|
||||
if (!keepAlivePages.value.includes(name)) {
|
||||
if (name && !keepAlivePages.value.includes(name)) {
|
||||
keepAlivePages.value = [...keepAlivePages.value, name];
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user