mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 12:50:48 +00:00
no message
This commit is contained in:
parent
1f71cc827c
commit
625bb97c35
2
public/js/app.js
vendored
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
@ -1 +1 @@
|
||||
f5d2403feffe3302
|
||||
95171bfb539cdb76
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user