fix: 任务聊天出现空白的情况

This commit is contained in:
kuaifan 2022-07-01 11:33:34 +08:00
parent 27441eb82e
commit 81b07ea6e8

View File

@ -597,6 +597,7 @@ export default {
'cacheProjects',
'cacheColumns',
'cacheTasks',
'cacheDialogs',
'taskContents',
'taskFiles',
'taskPriority',
@ -809,7 +810,12 @@ export default {
if (val) {
this.timeValue = this.taskDetail.end_at ? [this.taskDetail.start_at, this.taskDetail.end_at] : [];
}
}
},
'taskDetail.dialog_id'(dialog_id) {
if (dialog_id > 0 && !this.cacheDialogs.find(({id}) => id == dialog_id)) {
this.$store.dispatch("getDialogOne", dialog_id).catch(() => {})
}
},
},
methods: {