support config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user