add getTaskList request param

This commit is contained in:
龚祖望 2023-09-08 14:15:46 +08:00
parent 5d4a053a95
commit 8b68509a99
1 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ export default {
showTask(fileName, fileVersion) {
this.currentFileName = fileName
this.currentFileVersion = fileVersion
getTaskList({ fileName }).then((res) => {
getTaskList({ fileName, fileVersion }).then((res) => {
this.$message.success('升级任务查询成功')
this.taskList = res.data.map((task) => {
const statusList = ['失败', '成功', '进行中', '未开始']
@ -565,7 +565,7 @@ export default {
.catch((err) => {})
},
refresh(needMsg = true) {
getTaskList({ fileName: this.currentFileName }).then((res) => {
getTaskList({ fileName: this.currentFileName, fileVersion: this.currentFileVersion }).then((res) => {
if (needMsg) {
this.$message.success('刷新成功')
}