no message

This commit is contained in:
kuaifan 2022-07-04 16:29:43 +08:00
parent 1f71cc827c
commit 625bb97c35
6 changed files with 7 additions and 25 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
f5d2403feffe3302
95171bfb539cdb76

View File

@ -38,7 +38,6 @@ export default {
},
computed: {
...mapState(['cacheDialogs']),
...mapGetters(['projectData']),
dialogShow() {
@ -46,26 +45,6 @@ export default {
}
},
watch: {
dialogShow: {
handler(show) {
if (show) {
const {dialog_id} = this.projectData
if (!this.cacheDialogs.find(({id}) => id == dialog_id)) {
if (this.loadIng === true) {
return
}
this.loadIng = true
this.$store.dispatch("getDialogOne", dialog_id).catch(() => {}).finally(_ => {
this.loadIng = false
})
}
}
},
immediate: true
}
},
methods: {
onClose() {
this.$store.dispatch('toggleProjectParameter', 'chat');

View File

@ -1424,6 +1424,9 @@ export default {
if (data === 'completedTask') {
this.$store.dispatch("forgetTaskCompleteTemp", true);
} else if (data === 'chat') {
if (!this.cacheDialogs.find(({id}) => id == this.projectData.dialog_id)) {
this.$store.dispatch("getDialogOne", this.projectData.dialog_id).catch(() => {})
}
if (this.windowSmall) {
this.$store.dispatch('openDialog', this.projectData.dialog_id)
return;