2
0
Эх сурвалжийг харах

:bug: mermaid.initialize({startOnLoad:true});

visuddhinanda@gmail.com 4 жил өмнө
parent
commit
66fbc54cec

+ 1 - 1
public/app/course/lesson.js

@@ -81,7 +81,7 @@ function lesson_show(id) {
             }
             }
             $("#lesson_list").html(html);
             $("#lesson_list").html(html);
 			note_refresh_new();
 			note_refresh_new();
-            mermaid.initialize();
+            mermaid.initialize({startOnLoad:true});
         }
         }
     );
     );
 }
 }

+ 1 - 1
public/app/term/note.js

@@ -203,7 +203,7 @@ function note_refresh_new(callback = null) {
 							callback();
 							callback();
 						}
 						}
 						//初始化mermaid
 						//初始化mermaid
-						mermaid.initialize();
+						mermaid.initialize({startOnLoad:true});
 
 
 					} catch (e) {
 					} catch (e) {
 						console.error(e);
 						console.error(e);