diff --git a/resources/app b/resources/app index 8380cb731..c71239985 160000 --- a/resources/app +++ b/resources/app @@ -1 +1 @@ -Subproject commit 8380cb7310f69303c984706a72c1759c72b94f24 +Subproject commit c7123998555f0aab6d3f56a289bdf4d6cef49f01 diff --git a/resources/assets/js/pages/manage/components/DialogItem.vue b/resources/assets/js/pages/manage/components/DialogItem.vue index 911075fee..be34cc3bd 100644 --- a/resources/assets/js/pages/manage/components/DialogItem.vue +++ b/resources/assets/js/pages/manage/components/DialogItem.vue @@ -120,14 +120,6 @@ export default { type: Number, default: 0 }, - scrollIng: { - type: Number, - default: 0 - }, - readEnabled: { - type: Boolean, - default: false - }, multiSelectMode: { type: Boolean, default: false @@ -149,10 +141,6 @@ export default { return this.simpleView || this.msgId === this.source.id }, - isNoRead() { - return this.isRightMsg || this.source.read_at - }, - isUnreadStart() { return this.unreadOne === this.source.id && this.source.id > 0 }, @@ -189,36 +177,7 @@ export default { }, }, - watch: { - readEnabled() { - this.msgRead(); - }, - windowActive() { - this.msgRead(); - }, - scrollIng() { - this.msgRead(); - }, - }, - methods: { - msgRead() { - if (this.isNoRead) { - return; - } - if (!this.readEnabled) { - return; - } - if (!this.windowActive) { - return; - } - if (!this.$el?.parentNode.classList.contains('item-enter')) { - return; - } - // 标记已读 - this.$store.dispatch("dialogMsgRead", this.source); - }, - formatTodoUser(data) { if ($A.isJson(data)) { const {userids} = data diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 04a1b7b95..c9202ce0e 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -225,7 +225,7 @@