no message

This commit is contained in:
kuaifan 2025-04-22 17:19:55 +08:00
parent 4af354e918
commit 6e34409225
4 changed files with 29 additions and 6 deletions

View File

@ -58,9 +58,7 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
if (this.scrollTarget) { this.removeEventListeners()
this.scrollTarget.removeEventListener('scroll', this.handlerEventListeners);
}
}, },
computed: { computed: {
@ -117,6 +115,12 @@ export default {
}; };
this.updatePopper(); this.updatePopper();
}, },
visible(v) {
if (!v) {
this.removeEventListeners()
}
}
}, },
methods: { methods: {
@ -161,6 +165,13 @@ export default {
this.scrollTarget.addEventListener('scroll', this.handlerEventListeners); this.scrollTarget.addEventListener('scroll', this.handlerEventListeners);
}, },
removeEventListeners() {
if (this.scrollTarget) {
this.scrollTarget.removeEventListener('scroll', this.handlerEventListeners);
this.scrollTarget = null;
}
},
handlerEventListeners(e) { handlerEventListeners(e) {
if (!this.visible || !this.menuTarget) { if (!this.visible || !this.menuTarget) {
return return

View File

@ -146,6 +146,9 @@ export default {
}, },
onBack() { onBack() {
//
this.$store.commit('menu/operation', {})
// //
let microAppIsAccept = false; let microAppIsAccept = false;
microApp.setGlobalData({ microApp.setGlobalData({
@ -161,10 +164,13 @@ export default {
if (microAppIsAccept) { if (microAppIsAccept) {
return; return;
} }
//
//
if (this.$Modal.removeLast()) { if (this.$Modal.removeLast()) {
return; return;
} }
//
if (this.routeName === 'manage-file') { if (this.routeName === 'manage-file') {
if (this.fileFolderId > 0) { if (this.fileFolderId > 0) {
const file = this.fileLists.find(({id, permission}) => id == this.fileFolderId && permission > -1) const file = this.fileLists.find(({id, permission}) => id == this.fileFolderId && permission > -1)
@ -181,6 +187,8 @@ export default {
this.goForward({name: 'manage-application'}, true); this.goForward({name: 'manage-application'}, true);
return; return;
} }
//
if (this.routeName === 'manage-messenger') { if (this.routeName === 'manage-messenger') {
if (this.$route.params.dialogAction === 'contacts') { if (this.$route.params.dialogAction === 'contacts') {
if (this.messengerSearchKey.contacts) { if (this.messengerSearchKey.contacts) {

View File

@ -296,6 +296,6 @@ export default {
// 通用菜单 // 通用菜单
'menu/operation': function(state, data) { 'menu/operation': function(state, data) {
state.menuOperation = data state.menuOperation = data || {}
}, },
} }

View File

@ -374,7 +374,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 1px; bottom: 1px;
z-index: 2; z-index: 3;
background-color: #ffffff; background-color: #ffffff;
display: flex; display: flex;
align-items: center; align-items: center;
@ -758,6 +758,10 @@
align-items: flex-start; align-items: flex-start;
position: relative; position: relative;
p {
word-break: break-all;
}
a, a,
img { img {
-webkit-user-drag: none; -webkit-user-drag: none;