Replies: 2 comments
-
推荐使用英文再问一遍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
通过npm安装viewerjs,再在md里通过vue的方式调用 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
通过head: [["script", {src: 'https://www.draw.io/js/viewer.min.js'}]]引入js,里面定义了一个全局变量GraphViewer,我需要在每篇md末尾调用一次GraphViewer.processElements(),在dev模式可以正常运行,但是build时会提示GraphViewer is not defined,即使declare const GraphViewer也一样,请问推荐做法是什么
Beta Was this translation helpful? Give feedback.
All reactions