fix: preserve disk monitor static routes

This commit is contained in:
2026-04-22 21:53:51 +08:00
parent 2314b03404
commit a6e32e0e19

View File

@@ -7,7 +7,19 @@ import { useAuthStore } from '@/stores/modules/auth'
// 引入 views 文件夹下所有 vue 文件
const modules = import.meta.glob('@/views/**/*.vue')
const STATIC_ROUTE_NAMES = new Set(['layout', 'login', 'home', 'tools', 'toolWaveform', 'toolMmsMapping', '403', '404', '500'])
const STATIC_ROUTE_NAMES = new Set([
'layout',
'login',
'home',
'tools',
'toolWaveform',
'toolMmsMapping',
'systemMonitor',
'diskMonitor',
'403',
'404',
'500'
])
let isInitializing = false