Commit 13e9c8ac authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

chore: markdown渲染图表失败展示

See merge request !236
parents b9cedcb0 67b30a67
...@@ -273,6 +273,13 @@ defineExpose({ ...@@ -273,6 +273,13 @@ defineExpose({
font-family: 'Microsoft YaHei UI'; font-family: 'Microsoft YaHei UI';
font-size: 14px; font-size: 14px;
color: #999; 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) { :deep(.mermaid-rendering-container) {
......
...@@ -87,7 +87,7 @@ const walkTokens = async (token: any) => { ...@@ -87,7 +87,7 @@ const walkTokens = async (token: any) => {
token.text = tempDiv.innerHTML token.text = tempDiv.innerHTML
} catch (error) { } catch (error) {
token.text = `<div class="mermaid-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> <span>${t('common_module.mermaid_render_error')}</span>
</div>` </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