mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🚨 修复 qodana 报错
This commit is contained in:
@@ -181,7 +181,6 @@ watch(loadShare, (value) => {
|
||||
});
|
||||
|
||||
function getRenderPost(data: TGApp.Plugins.Mys.Post.FullData): TGApp.Plugins.Mys.SctPost.Base[] {
|
||||
let parseData: TGApp.Plugins.Mys.SctPost.Base[] = [];
|
||||
const postContent = data.post.content;
|
||||
let jsonParse: string;
|
||||
if (postContent.startsWith("<")) {
|
||||
@@ -193,8 +192,7 @@ function getRenderPost(data: TGApp.Plugins.Mys.Post.FullData): TGApp.Plugins.Mys
|
||||
jsonParse = data.post.structured_content;
|
||||
}
|
||||
}
|
||||
parseData = JSON.parse(jsonParse);
|
||||
return parseData;
|
||||
return JSON.parse(jsonParse);
|
||||
}
|
||||
|
||||
function switchRender() {
|
||||
|
||||
Reference in New Issue
Block a user