Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
classfang committed Apr 8, 2024
1 parent 70b821a commit c15e86b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const collectImage = () => {
<style scoped lang="less">
.ai-drawing-img-current {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const deleteDrawingTask = (taskId: string) => {
cancelText: t('common.cancel'),
onOk: () => {
drawingStore.drawingTaskList = drawingStore.drawingTaskList.filter((t) => t.id !== taskId)
if (drawingStore.currentTaskId === taskId) {
drawingStore.currentTaskId = null
}
}
})
}
Expand Down

0 comments on commit c15e86b

Please sign in to comment.