🎨 统一保存文件名格式

This commit is contained in:
BTMuli
2023-06-16 16:40:27 +08:00
parent 5393dc1bb5
commit 029377b3cf
5 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ onMounted(async () => {
annoHtml.value = await TGUtils.Anno.parseContent(annoData.value.content);
annoBanner.value = await saveImgLocal(annoData.value.banner);
console.log(annoBanner.value);
annoTitle.value = annoData.value.title;
annoTitle.value = `【公告】${annoData.value.ann_id}-${annoData.value.title}`;
annoRef.value = document.querySelector(".anno-body") as HTMLElement;
} catch (error) {
console.error(error);

View File

@@ -46,7 +46,7 @@ onMounted(async () => {
const postData = await MysOper.Post.get(postId);
loadingTitle.value = "正在渲染数据...";
postHtml.value = MysOper.Post.parser(postData);
postTitle.value = postData.post.subject;
postTitle.value = `【帖子】${postData.post.post_id}-${postData.post.subject}`;
postRef.value = document.querySelector(".mys-post-body") as HTMLElement;
await appWindow.setTitle(postData.post.subject);
} catch (error) {