Fix:修复传入空数据时RichText插件会报错的问题

This commit is contained in:
街角小林 2025-02-18 09:12:55 +08:00
parent 0a8b14ddd8
commit 43c7f0551a

View File

@ -820,6 +820,7 @@ class RichText {
// 处理导入数据
handleSetData(data) {
if (!data) return
// 短期处理,为了兼容老数据,长期会去除
const isOldRichTextVersion =
!data.smmVersion || compareVersion(data.smmVersion, '0.13.0') === '<'