feat: 为Frpc下载页面添加运行时缓存,避免重复请求触发限流

扩展路由元信息类型以支持页面缓存开关,在Layout中实现基于路由元的keep-alive逻辑,为Download组件设置对应名称和缓存标识,仅在应用运行时缓存页面,刷新仍需手动触发更新。
This commit is contained in:
Yuhang Wu
2026-10-16 13:44:20 +08:00
parent 5c1ce2fa5c
commit 57b4d7be5a
5 changed files with 73 additions and 3 deletions
+3
View File
@@ -65,6 +65,9 @@ import { isTauri } from "@/utils/window"
const { t } = useI18n()
// 组件名需与路由 name 一致,以便被 Layout 的 <keep-alive :include> 缓存
defineOptions({ name: "Download" })
const loading = ref(false)
const importing = ref(false)