feat: 隐藏页签持久可见 + 页签切换不卸载 + 白板周期存活探测

- 隐藏页签(cqy)访问后保持可见:路由进入即标记 visited,切走不再消失
- 页签切换默认不卸载组件:<KeepAlive :include> 缓存全部模块组件
  仅声明 requiresAlive 的模块在服务失活(down)时移出 include -> 卸载
- 白板存活检测改为加载即探测 + 每 30s 周期重探(startPolling),
  状态在 up/down 间响应式翻转,不再一次性固化
- 各模块组件 defineOptions name 与模块 id 一致,便于 KeepAlive 精确匹配
This commit is contained in:
2026-07-22 03:20:48 +00:00
parent 2c33457c87
commit 711026be9f
6 changed files with 98 additions and 42 deletions

View File

@@ -1,5 +1,7 @@
<script setup>
import { ref, computed } from 'vue'
// 组件名与模块 id 一致,供 <KeepAlive :include> 按 id 精确匹配
defineOptions({ name: 'cqy' })
import { useLocale } from '../../composables/useLocale.js'
const { t } = useLocale()