mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
no message
This commit is contained in:
parent
4af354e918
commit
6e34409225
@ -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
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
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) {
|
'menu/operation': function(state, data) {
|
||||||
state.menuOperation = data
|
state.menuOperation = data || {}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user