Fix:修复节点文本存在svg不支持的实体字符时小地图无法渲染的问题

This commit is contained in:
街角小林 2024-04-02 09:00:09 +08:00
parent 92894d0341
commit ac3ad1681f
2 changed files with 1 additions and 5 deletions

View File

@ -93,10 +93,7 @@ class MiniMap {
return {
getImgUrl: async callback => {
const blob = new Blob([svgStr], {
type: 'image/svg+xml'
})
const res = await readBlob(blob)
const res = await this.mindMap.doExport.fixSvgStrAndToBlob(svgStr)
callback(res)
},
svgHTML: svgStr, // 小地图html

View File

@ -93,7 +93,6 @@ export default {
//
onScale() {
console.log(1)
if (!this.node || !this.show) return
this.updatePosition()
},