11
This commit is contained in:
@@ -13,18 +13,6 @@
|
||||
{{ systemStatus.running ? '正常' : '错误' }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="status-item">
|
||||
<span>活跃应用:</span>
|
||||
<span>{{ systemStatus.performance.activeApps }}</span>
|
||||
</div>
|
||||
<div class="status-item">
|
||||
<span>活跃窗体:</span>
|
||||
<span>{{ systemStatus.performance.activeWindows }}</span>
|
||||
</div>
|
||||
<div class="status-item">
|
||||
<span>内存使用:</span>
|
||||
<span>{{ Math.round(systemStatus.performance.memoryUsage) }}MB</span>
|
||||
</div>
|
||||
<button @click="showSystemStatus = false" class="close-btn">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,12 +56,6 @@ const systemStatus = ref<SystemStatus>({
|
||||
sandboxEngine: false,
|
||||
lifecycleManager: false
|
||||
},
|
||||
performance: {
|
||||
memoryUsage: 0,
|
||||
cpuUsage: 0,
|
||||
activeApps: 0,
|
||||
activeWindows: 0
|
||||
},
|
||||
uptime: 0
|
||||
})
|
||||
|
||||
@@ -153,7 +135,7 @@ const startApp = async (appId: string) => {
|
||||
} else if (externalAppDiscovery.hasApp(appId)) {
|
||||
// 外置应用:直接使用ApplicationLifecycleManager
|
||||
console.log(`启动外置应用: ${appId}`)
|
||||
|
||||
|
||||
if (!lifecycleManager.isAppRunning(appId)) {
|
||||
await lifecycleManager.startApp(appId)
|
||||
console.log(`外置应用 ${appId} 启动成功`)
|
||||
@@ -189,7 +171,7 @@ onMounted(async () => {
|
||||
// 开始系统状态更新
|
||||
statusUpdateInterval = setInterval(updateSystemStatus, 5000)
|
||||
updateSystemStatus()
|
||||
|
||||
|
||||
// 不再设置自动刷新定时器,只在需要时手动刷新
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user