mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
113c58a057
commit
34a1c97e6b
@ -515,6 +515,8 @@ export default {
|
||||
|
||||
'clientNewVersion',
|
||||
'cacheTaskBrowse',
|
||||
|
||||
'dialogModalId',
|
||||
]),
|
||||
|
||||
...mapGetters(['taskData', 'dashboardTask']),
|
||||
@ -927,7 +929,7 @@ export default {
|
||||
}
|
||||
if (!this.natificationHidden
|
||||
&& this.routeName === 'manage-messenger'
|
||||
&& this.$route.params.dialogId == data.dialog_id) {
|
||||
&& (this.$route.params.dialogId == data.dialog_id || this.dialogModalId === data.dialog_id)) {
|
||||
return; // 可见 且 路由匹配时
|
||||
}
|
||||
//
|
||||
|
||||
@ -8,9 +8,7 @@
|
||||
:beforeClose="onBeforeClose"
|
||||
class-name="dialog-modal"
|
||||
fullscreen>
|
||||
<transition name="mobile-dialog">
|
||||
<DialogWrapper v-if="dialogModalId > 0" :dialogId="dialogModalId" :beforeBack="onBeforeClose"/>
|
||||
</transition>
|
||||
<DialogWrapper v-if="dialogModalId > 0" :dialogId="dialogModalId" :beforeBack="onBeforeClose"/>
|
||||
</Modal>
|
||||
</template>
|
||||
|
||||
@ -66,7 +64,15 @@ export default {
|
||||
this.show = id > 0;
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
windowLarge: {
|
||||
handler(is) {
|
||||
if (is && this.dialogModalId > 0) {
|
||||
this.$store.state.dialogModalId = 0;
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
:style="wrapperStyle"
|
||||
@drop.prevent="chatPasteDrag($event, 'drag')"
|
||||
@dragover.prevent="chatDragOver(true, $event)"
|
||||
@dragleave.prevent="chatDragOver(false, $event)">
|
||||
@dragleave.prevent="chatDragOver(false, $event)"
|
||||
@touchmove="onTouchmove">
|
||||
<!--顶部导航-->
|
||||
<slot name="head">
|
||||
<div class="dialog-nav" :class="{completed:$A.dialogCompleted(dialogData)}">
|
||||
@ -662,6 +663,12 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
onTouchmove(e) {
|
||||
if (this.windowSmall && !this.$refs.scroller.$el.contains(e.target)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
pasteSend() {
|
||||
this.pasteFile.some(file => {
|
||||
this.$refs.chatUpload.upload(file)
|
||||
|
||||
@ -356,6 +356,14 @@ export default {
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
windowSmall: {
|
||||
handler(is) {
|
||||
if (is && this.dialogId > 0) {
|
||||
this.goForward({name: 'manage-messenger', params: {dialogId: 'dialog'}}, true);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user