mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复传入空数据时RichText插件会报错的问题
This commit is contained in:
parent
0a8b14ddd8
commit
43c7f0551a
@ -820,6 +820,7 @@ class RichText {
|
||||
|
||||
// 处理导入数据
|
||||
handleSetData(data) {
|
||||
if (!data) return
|
||||
// 短期处理,为了兼容老数据,长期会去除
|
||||
const isOldRichTextVersion =
|
||||
!data.smmVersion || compareVersion(data.smmVersion, '0.13.0') === '<'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user