mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-03 16:02:08 +00:00
fix: 修复手机客户端无法预览文件的问题
This commit is contained in:
parent
157e89b5ea
commit
8d876c60b2
@ -314,6 +314,12 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
}
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
const eeui = requireModuleJs("eeui");
|
||||
eeui.openPage({
|
||||
pageType: 'web',
|
||||
url: $A.apiUrl(`../single/file/msg/${this.msgData.id}?token=${this.userToken}`)
|
||||
}, _ => {});
|
||||
} else {
|
||||
window.open($A.apiUrl(`../single/file/msg/${this.msgData.id}`))
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['windowHeight']),
|
||||
...mapState(['userToken', 'windowHeight']),
|
||||
|
||||
fileId() {
|
||||
return this.file.id || 0
|
||||
@ -199,6 +199,12 @@ export default {
|
||||
nodeIntegrationInSubFrames: this.file.type === 'drawio'
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
const eeui = requireModuleJs("eeui");
|
||||
eeui.openPage({
|
||||
pageType: 'web',
|
||||
url: $A.apiUrl(`../single/file/${this.fileId}?history_id=${row.id}&history_at=${row.created_at}&token=${this.userToken}`)
|
||||
}, _ => {});
|
||||
} else {
|
||||
window.open($A.apiUrl(`../single/file/${this.fileId}?history_id=${row.id}&history_at=${row.created_at}`))
|
||||
}
|
||||
|
||||
@ -1263,6 +1263,12 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
}
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
const eeui = requireModuleJs("eeui");
|
||||
eeui.openPage({
|
||||
pageType: 'web',
|
||||
url: $A.apiUrl(`../single/file/task/${file.id}?token=${this.userToken}`)
|
||||
}, _ => {});
|
||||
} else {
|
||||
window.open($A.apiUrl(`../single/file/task/${file.id}`))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user