fix: 文件页移动端滑动返回失败情况

This commit is contained in:
Pang 2023-12-16 22:58:17 +08:00
parent 22324f4c16
commit c5879e4376

View File

@ -133,12 +133,15 @@ export default {
}
//
let microAppIsVisible = false;
microApp.setGlobalData({ type:'modalVisible', callback: (appName, isVisible) => {
if(isVisible){
microApp.setGlobalData({
type: 'modalVisible',
callback: (appName, isVisible) => {
if (isVisible) {
microAppIsVisible = true;
}
}})
if(microAppIsVisible){
}
})
if (microAppIsVisible) {
return true;
}
//
@ -149,22 +152,23 @@ export default {
//
let microAppIsAccept = false;
microApp.setGlobalData({
type:'route',
type: 'route',
action: 'back',
route: this.$route,
callback: (appName, isAccept) => {
if(isAccept){
if (isAccept) {
microAppIsAccept = true;
}
}
})
if(microAppIsAccept){
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)
if (file) {
@ -177,6 +181,9 @@ export default {
this.goForward({name: 'manage-file'});
return;
}
this.goForward({name: 'manage-application'}, true);
return;
}
if (this.routeName === 'manage-messenger') {
if (this.$route.params.dialogAction === 'contacts') {
if (this.messengerSearchKey.contacts) {