mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复特定情况下的数据遗漏
This commit is contained in:
@@ -60,6 +60,11 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My
|
||||
const text = parsedText[i];
|
||||
child.push(parsedText[i]);
|
||||
if (text.insert === "\n") {
|
||||
if (child.length === 1) {
|
||||
res.push(child[0]);
|
||||
child = [];
|
||||
continue;
|
||||
}
|
||||
cur = {
|
||||
insert: "",
|
||||
attributes: text.attributes,
|
||||
@@ -70,7 +75,7 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My
|
||||
child = [];
|
||||
}
|
||||
}
|
||||
if (check !== parsedText.length - 1 && child.length > 1) res.push(...child);
|
||||
if (check !== parsedText.length - 1 && child.length > 0) res.push(...child);
|
||||
}
|
||||
if (res.length === 0 && child.length > 0) res.push(...child);
|
||||
return res;
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
@click="showReply()"
|
||||
>
|
||||
<v-icon size="small">mdi-message-text</v-icon>
|
||||
{{ props.modelValue.sub_replies.length }}
|
||||
<v-menu
|
||||
submenu
|
||||
activator="parent"
|
||||
|
||||
Reference in New Issue
Block a user