Skip to content

Commit

Permalink
enable auto rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhang16 committed Apr 22, 2023
1 parent 6883a92 commit 6b9091a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mermaid/src/docs/.vitepress/theme/Mermaid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ const renderChart = async () => {
const salt = Math.random().toString(36).substring(7);
svg.value = `${svgCode} <span style="display: none">${salt}</span>`;
};
watch(props, renderChart);
</script>

0 comments on commit 6b9091a

Please sign in to comment.