diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index b30dabb68..585920a41 100644 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -693,17 +693,20 @@ export default { immediate: true, deep: true }, - taskId (id) { - if (id > 0) { - this.ready = true; - } else { - this.timeOpen = false; - this.timeForce = false; - this.assistForce = false; - this.addsubForce = false; - this.$refs.owner && this.$refs.owner.handleClose(); - this.$refs.assist && this.$refs.assist.handleClose(); - } + taskId: { + handler(id) { + if (id > 0) { + this.ready = true; + } else { + this.timeOpen = false; + this.timeForce = false; + this.assistForce = false; + this.addsubForce = false; + this.$refs.owner && this.$refs.owner.handleClose(); + this.$refs.assist && this.$refs.assist.handleClose(); + } + }, + immediate: true } },