!261 调整drawio 预览模式 ,修复预览模式切换编辑模式bug

Merge pull request !261 from 高雄/master
This commit is contained in:
kailing 2023-12-26 09:06:43 +00:00 committed by Gitee
commit 8441d18a7f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 114722 additions and 114721 deletions

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@
if (!url.startsWith(baseUrl)) {
url = baseUrl + 'getCorsFile?urlPath=' + encodeURIComponent(Base64.encode(url));
}
document.getElementsByTagName('iframe')[0].src = "${baseUrl}drawio/index.html?src=about#U"+ encodeURIComponent(url)+"";
document.getElementsByTagName('iframe')[0].src = "${baseUrl}drawio/index.html?lightbox=1&gapi=0&db=0&od=0&tr=0&gh=0&gl=0&edit=_blank&lang=zh#U"+ encodeURIComponent(url)+"";
document.getElementsByTagName('iframe')[0].height = document.documentElement.clientHeight - 10;
/**
* 页面变化调整高度