内嵌iframe页支持设置keepAlive,保持页面状态 (#873)

* pref: keep alive iframe

* pref: default maxCount is 10 item

* pref: 渲染iframe时,移除默认的slot渲染frameView组件

* perf: fix frame reload error after hmr

* perf: 通过路由配置keepAlive frame

* perf: refresh keep alive iframe
This commit is contained in:
otis
2024-01-22 11:10:36 +08:00
committed by GitHub
parent 0887dd46d5
commit b13d745474
5 changed files with 198 additions and 56 deletions

View File

@@ -118,6 +118,7 @@ const frameRouter = {
meta: {
title: "menus.hsEpDocument",
frameSrc: "https://element-plus.org/zh-CN/",
keepAlive: true,
roles: ["admin", "common"]
}
},
@@ -127,6 +128,7 @@ const frameRouter = {
meta: {
title: "menus.hsTailwindcssDocument",
frameSrc: "https://tailwindcss.com/docs/installation",
keepAlive: true,
roles: ["admin", "common"]
}
},
@@ -136,6 +138,7 @@ const frameRouter = {
meta: {
title: "menus.hsVueDocument",
frameSrc: "https://cn.vuejs.org/",
keepAlive: true,
roles: ["admin", "common"]
}
},
@@ -145,6 +148,7 @@ const frameRouter = {
meta: {
title: "menus.hsViteDocument",
frameSrc: "https://cn.vitejs.dev/",
keepAlive: true,
roles: ["admin", "common"]
}
},
@@ -154,6 +158,7 @@ const frameRouter = {
meta: {
title: "menus.hsPiniaDocument",
frameSrc: "https://pinia.vuejs.org/zh/index.html",
keepAlive: true,
roles: ["admin", "common"]
}
},
@@ -163,6 +168,7 @@ const frameRouter = {
meta: {
title: "menus.hsRouterDocument",
frameSrc: "https://router.vuejs.org/zh/",
keepAlive: true,
roles: ["admin", "common"]
}
}