mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 下载pdf使用自带浏览器
This commit is contained in:
parent
ee9cf0a6b6
commit
6cbf2bbada
@ -1 +1 @@
|
||||
Subproject commit 5ffa32bc9e7ef9f710beba2ae964f5f7d112aa8f
|
||||
Subproject commit 482bb977d14d3baaed342ef282811402f14e88de
|
||||
@ -73,6 +73,22 @@
|
||||
if (themeConf === 'dark') {
|
||||
document.body.classList.add("dark");
|
||||
}
|
||||
//
|
||||
const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||
if (isEEUiApp) {
|
||||
document.querySelector(".link").addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
window.top.postMessage({
|
||||
action: "eeuiAppSendMessage",
|
||||
data: [
|
||||
{
|
||||
action: 'openUrl',
|
||||
url: "{{ $url }}",
|
||||
}
|
||||
]
|
||||
}, "*")
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user