Commit 7dd92652 authored by xioln's avatar xioln

完成任务问题修改

parent d2e4e9e2
......@@ -301,31 +301,30 @@ export default {
taskVariables: {},
variables: {}
}
console.log('obj', obj)
// completeTask(obj)
// .then((res) => {
// Notify({
// type: 'success',
// message: res.message,
// onOpened: () => {
// // sessionStorage.setItem('finishWork', true)
// this.$refs.taskBtnRef.comLoading = false
// this.$router.go(-1)
// // if (this.todoListTitle.includes('待办')) {
// // this.$router.push({
// // path: '/todoList?title=待办任务'
// // })
// // } else if (this.todoListTitle.includes('我发起')) {
// // this.$router.push({
// // path: '/todoList?title=我发起的任务'
// // })
// // }
// }
// })
completeTask(obj)
.then((res) => {
Notify({
type: 'success',
message: res.message,
onOpened: () => {
// sessionStorage.setItem('finishWork', true)
this.$refs.taskBtnRef.comLoading = false
this.$router.go(-1)
// if (this.todoListTitle.includes('待办')) {
// this.$router.push({
// path: '/todoList?title=待办任务'
// })
// .catch((e) => {
// this.$refs.taskBtnRef.comLoading = false
// } else if (this.todoListTitle.includes('我发起')) {
// this.$router.push({
// path: '/todoList?title=我发起的任务'
// })
// }
}
})
})
.catch((e) => {
this.$refs.taskBtnRef.comLoading = false
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment