Sfoglia il codice sorgente

!261 调整drawio 预览模式 ,修复预览模式切换编辑模式bug
Merge pull request !261 from 高雄/master

kailing 1 anno fa
parent
commit
8441d18a7f
2 ha cambiato i file con 114722 aggiunte e 114721 eliminazioni
  1. 114721 114720
      server/src/main/resources/static/drawio/js/app.min.js
  2. 1 1
      server/src/main/resources/web/drawio.ftl

File diff suppressed because it is too large
+ 114721 - 114720
server/src/main/resources/static/drawio/js/app.min.js


+ 1 - 1
server/src/main/resources/web/drawio.ftl

@@ -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;
     /**
      * 页面变化调整高度