Skip to content

Commit

Permalink
fix: 任务被终止时应允许修改配置,任务终止后不会再出现计时器和状态混乱
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Apr 21, 2023
1 parent 2feb5b0 commit 2962f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/src/components/Task/TaskCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const deviceStatus = computed(() => deviceStore.getDevice(uuid)?.status ?? 'disc
provide(
'configurationDisabled',
computed(() => {
const notEditableStatus: TaskStatus[] = ['exception', 'skipped', 'stopped', 'success', 'warning']
const notEditableStatus: TaskStatus[] = ['exception', 'skipped', 'success', 'warning']
return {
// 运行时可编辑任务用
re: notEditableStatus.includes(props.taskInfo.status),
Expand Down
1 change: 1 addition & 0 deletions packages/renderer/src/store/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ const useTaskStore = defineStore<'tasks', TaskState, {}, TaskAction>('tasks', {
}
})
}
this.resetToIdle(uuid)
},
copyTask (uuid, index) {
const tasks = this.getCurrentTaskGroup(uuid)?.tasks
Expand Down

0 comments on commit 2962f14

Please sign in to comment.