mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
fix: 文件页移动端滑动返回失败情况
This commit is contained in:
parent
22324f4c16
commit
c5879e4376
@ -133,15 +133,18 @@ export default {
|
|||||||
}
|
}
|
||||||
// 微应用
|
// 微应用
|
||||||
let microAppIsVisible = false;
|
let microAppIsVisible = false;
|
||||||
microApp.setGlobalData({ type:'modalVisible', callback: (appName, isVisible) => {
|
microApp.setGlobalData({
|
||||||
if(isVisible){
|
type: 'modalVisible',
|
||||||
microAppIsVisible = true;
|
callback: (appName, isVisible) => {
|
||||||
|
if (isVisible) {
|
||||||
|
microAppIsVisible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}})
|
})
|
||||||
if(microAppIsVisible){
|
if (microAppIsVisible) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -149,32 +152,36 @@ export default {
|
|||||||
// 微应用通知
|
// 微应用通知
|
||||||
let microAppIsAccept = false;
|
let microAppIsAccept = false;
|
||||||
microApp.setGlobalData({
|
microApp.setGlobalData({
|
||||||
type:'route',
|
type: 'route',
|
||||||
action: 'back',
|
action: 'back',
|
||||||
route: this.$route,
|
route: this.$route,
|
||||||
callback: (appName, isAccept) => {
|
callback: (appName, isAccept) => {
|
||||||
if(isAccept){
|
if (isAccept) {
|
||||||
microAppIsAccept = true;
|
microAppIsAccept = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(microAppIsAccept){
|
if (microAppIsAccept) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (this.$Modal.removeLast()) {
|
if (this.$Modal.removeLast()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.fileFolderId > 0) {
|
if (this.routeName === 'manage-file') {
|
||||||
const file = this.fileLists.find(({id, permission}) => id == this.fileFolderId && permission > -1)
|
if (this.fileFolderId > 0) {
|
||||||
if (file) {
|
const file = this.fileLists.find(({id, permission}) => id == this.fileFolderId && permission > -1)
|
||||||
const prevFile = this.fileLists.find(({id, permission}) => id == file.pid && permission > -1)
|
if (file) {
|
||||||
if (prevFile) {
|
const prevFile = this.fileLists.find(({id, permission}) => id == file.pid && permission > -1)
|
||||||
this.goForward({name: 'manage-file', params: {folderId: prevFile.id, fileId: null}});
|
if (prevFile) {
|
||||||
return;
|
this.goForward({name: 'manage-file', params: {folderId: prevFile.id, fileId: null}});
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
this.goForward({name: 'manage-file'});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.goForward({name: 'manage-file'});
|
this.goForward({name: 'manage-application'}, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.routeName === 'manage-messenger') {
|
if (this.routeName === 'manage-messenger') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user