mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
no message
This commit is contained in:
parent
4af354e918
commit
6e34409225
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
2
resources/assets/js/store/mutations.js
vendored
2
resources/assets/js/store/mutations.js
vendored
@ -296,6 +296,6 @@ export default {
|
||||
|
||||
// 通用菜单
|
||||
'menu/operation': function(state, data) {
|
||||
state.menuOperation = data
|
||||
state.menuOperation = data || {}
|
||||
},
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user