support config

This commit is contained in:
Julian Freeman
2026-04-04 13:22:40 -04:00
parent 9aa6f9cd1d
commit 04e4a510e5
6 changed files with 236 additions and 10 deletions

View File

@@ -283,9 +283,11 @@ export const useSoftwareStore = defineStore('software', {
listen('install-status', (event: any) => {
const { id, status, progress } = event.payload
const task = this.activeTasks[id];
// 更新任务状态
this.activeTasks[id] = { status, progress, targetVersion: task?.targetVersion };
// 当任务达到终态(成功或失败)时
// 当任务达到终态(成功或失败)时。注意:'configuring' 不是终态。
if (status === 'success' || status === 'error') {
if (status === 'success') {
this.lastFetched = 0;