Commit 67b30a67 authored by nick zheng's avatar nick zheng

chore: markdown渲染图表失败展示

parent f04da905
......@@ -273,6 +273,13 @@ defineExpose({
font-family: 'Microsoft YaHei UI';
font-size: 14px;
color: #999;
.render-error-icon-container {
width: 20px;
height: 20px;
background-image: url('@/assets/svgs/mermaid-error.svg');
background-size: 100% 100%;
}
}
:deep(.mermaid-rendering-container) {
......
......@@ -87,7 +87,7 @@ const walkTokens = async (token: any) => {
token.text = tempDiv.innerHTML
} catch (error) {
token.text = `<div class="mermaid-error">
<div class="h-5 w-5 bg-[url(@/assets/svgs/mermaid-error.svg)] bg-cover"></div>
<div class="render-error-icon-container"></div>
<span>${t('common_module.mermaid_render_error')}</span>
</div>`
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment