fix: 调度中心ws订阅的相关方法在初始化时暴露

This commit is contained in:
DLmaster361
2025-09-24 21:43:54 +08:00
parent bd58a512c9
commit 34df37c040
5 changed files with 257 additions and 24 deletions

View File

@@ -1,5 +1,7 @@
import type { RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
// 同步导入调度中心,保证其模块级导出(如 handler 注册点)在应用初始化时可用
import SchedulerView from '../views/scheduler/index.vue'
import { isAppInitialized } from '@/utils/config'
let needInitLanding = true
@@ -80,7 +82,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/scheduler',
name: 'Scheduler',
component: () => import('../views/scheduler/index.vue'),
component: SchedulerView,
meta: { title: '调度中心' },
},
{