[flowchart.js] post前台无法显示流程图 Uncaught ReferenceError: jQuery is not defined
Closed this issue · 4 comments
clark-mu commented
如果沒有提供以下詳細資訊,您開立的問題回報會被無視。
問題或臭蟲
在开启flowchart.js模组后,后台的预览界面正常,但是在前台页面中的flowchart并没有显示
Chrome控制台提示:
Uncaught ReferenceError: jQuery is not defined
在前端页面控制台Source和Network中均没有加载jQuery
怀疑因为没有加载jQuery导致无法显示flowchart
如何重現
請告知重現此問題的步驟回何:
- WP-githuber-md 设定中开启 flowchart 模组
- 新建一个post
- 输入例程中的代码
- Publish post,并查看
預期的行為或結果
预期与编辑界面一致,出现流程图
畫面截圖
伺服器環境
- WordPress 版本 5.9
- WP Githuber MD 版本 1.16.1
- PHP 版本 8.0.10
用戶端環境
- 作業系統 Windows 10 专业版
- 瀏覽器 Chrome 97.0.4692.99
其它說明
如果有的話,請提供。
clark-mu commented
在Theme的functions.php中增加 wp_enqueue_script('jquery');
后,流程图在前端页面显示正常。应该就是没有正常加载jQuery
jinzhongjia commented
我也遇到了同样的问题,我目前所使用主题为:MDx,按照你所说的的在functions.php中增加了加载jquery函数后一切正常,谢谢😸
github-actions commented
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.
github-actions commented
This issue was closed because it has been inactive for 14 days since being marked as stale.