mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48: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];
|
const text = parsedText[i];
|
||||||
child.push(parsedText[i]);
|
child.push(parsedText[i]);
|
||||||
if (text.insert === "\n") {
|
if (text.insert === "\n") {
|
||||||
|
if (child.length === 1) {
|
||||||
|
res.push(child[0]);
|
||||||
|
child = [];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
cur = {
|
cur = {
|
||||||
insert: "",
|
insert: "",
|
||||||
attributes: text.attributes,
|
attributes: text.attributes,
|
||||||
@@ -70,7 +75,7 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My
|
|||||||
child = [];
|
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);
|
if (res.length === 0 && child.length > 0) res.push(...child);
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
@click="showReply()"
|
@click="showReply()"
|
||||||
>
|
>
|
||||||
<v-icon size="small">mdi-message-text</v-icon>
|
<v-icon size="small">mdi-message-text</v-icon>
|
||||||
{{ props.modelValue.sub_replies.length }}
|
|
||||||
<v-menu
|
<v-menu
|
||||||
submenu
|
submenu
|
||||||
activator="parent"
|
activator="parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user