Commit 7dd92652 authored by xioln's avatar xioln

完成任务问题修改

parent d2e4e9e2
...@@ -301,31 +301,30 @@ export default { ...@@ -301,31 +301,30 @@ export default {
taskVariables: {}, taskVariables: {},
variables: {} variables: {}
} }
console.log('obj', obj) completeTask(obj)
// completeTask(obj) .then((res) => {
// .then((res) => { Notify({
// Notify({ type: 'success',
// type: 'success', message: res.message,
// message: res.message, onOpened: () => {
// onOpened: () => { // sessionStorage.setItem('finishWork', true)
// // sessionStorage.setItem('finishWork', true) this.$refs.taskBtnRef.comLoading = false
// this.$refs.taskBtnRef.comLoading = false this.$router.go(-1)
// this.$router.go(-1) // if (this.todoListTitle.includes('待办')) {
// // if (this.todoListTitle.includes('待办')) { // this.$router.push({
// // this.$router.push({ // path: '/todoList?title=待办任务'
// // path: '/todoList?title=待办任务'
// // })
// // } else if (this.todoListTitle.includes('我发起')) {
// // this.$router.push({
// // path: '/todoList?title=我发起的任务'
// // })
// // }
// }
// })
// }) // })
// .catch((e) => { // } else if (this.todoListTitle.includes('我发起')) {
// this.$refs.taskBtnRef.comLoading = false // 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