mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-20 04:39:45 +08:00
🐛 修复特定情况下的渲染异常
This commit is contained in:
@@ -66,6 +66,16 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My
|
||||
child = [];
|
||||
}
|
||||
}
|
||||
// 可能没有换行符,导致res为空
|
||||
if (res.length === 0) {
|
||||
cur = {
|
||||
insert: "",
|
||||
attributes: tp.attributes,
|
||||
children: child,
|
||||
};
|
||||
res.push(cur);
|
||||
child = [];
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user