// 模块元数据 -- 共享记事本(白板)页签 // 构建期组件集成:mainPage 侧包装器 Whiteboard.vue import 子模块 zWhiteBoard 的 App.vue, // 套 PageShell 统一容器与标题。zWhiteBoard 作为 git submodule 独立维护, // 其 UI/交互经同源 fetch/WS 调用 zTools2 的 /api/wb/* 与 /api/ws/wb/*(前后端分离)。 // requiresAlive 指向存活探针 URL:启动时探测,zTools2 不可达则隐藏该页签。 // 升级:cd third_party/zWhiteBoard && git pull,回 mainPage 根 git add 该子模块并重新 build。 import { healthUrl } from '../../config/app.config.js' export default { id: 'whiteboard', tabKey: 'tabs.whiteboard', order: 2, // 存活探针 URL;useProjects 启动时探测一次,挂掉则不显示页签 requiresAlive: healthUrl('whiteboard'), // 接受 /whiteboard/:boardId 子路径,使直链访问能预填白板 id param: 'boardId', // 懒加载组件 -> 独立 chunk component: () => import('./Whiteboard.vue') }