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

View File

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

View File

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

View File

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