上线里站搜索,修复提交任务后看不到downloader的bug,修复提交任务后再次查询可以直接操作的bug(同步更新)

This commit is contained in:
chuzhongzai
2023-03-18 12:59:15 +08:00
parent 38267a076a
commit dc4960cdac
2 changed files with 64 additions and 2 deletions
+2 -1
View File
@@ -432,6 +432,7 @@ const mutations = {
state.chosenGallery.createTimeDisplay = "等待下载完成后再查看"
state.chosenGallery.progress = "已提交"
state.chosenGallery.tag = ""
state.chosenGallery.downloader = state.userId
state.totalGalleryTask.push(state.chosenGallery)
state.downloadGallery.push(state.chosenGallery)
}
@@ -614,6 +615,6 @@ function deleteTask(tasks, key, value){
for(let i=0; i<tasks[j].length; i++)
if(tasks[j][i][key] === value){
tasks[j].splice(i, 1)
break
return
}
}