mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
💄 参照 post 修正 anno
This commit is contained in:
@@ -59,13 +59,14 @@ onMounted(async () => {
|
|||||||
loadingTitle.value = "正在渲染数据...";
|
loadingTitle.value = "正在渲染数据...";
|
||||||
annoHtml.value = await TGUtils.Anno.parseContent(annoData.value.content);
|
annoHtml.value = await TGUtils.Anno.parseContent(annoData.value.content);
|
||||||
annoBanner.value = await saveImgLocal(annoData.value.banner);
|
annoBanner.value = await saveImgLocal(annoData.value.banner);
|
||||||
console.log(annoBanner.value);
|
annoTitle.value = `【公告】${annoId}-${annoData.value.title}`;
|
||||||
annoTitle.value = `【公告】${annoData.value.ann_id}-${annoData.value.title}`;
|
await appWindow.setTitle(annoTitle.value);
|
||||||
annoRef.value = document.querySelector(".anno-body") as HTMLElement;
|
annoRef.value = document.querySelector(".anno-body") as HTMLElement;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
loadingEmpty.value = true;
|
loadingEmpty.value = true;
|
||||||
loadingTitle.value = "公告不存在或解析失败";
|
loadingTitle.value = "公告不存在或解析失败";
|
||||||
|
await appWindow.setTitle(`【公告】${annoId}-公告不存在或解析失败`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user