mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-11 09:08:14 +08:00
🎨 统一保存文件名格式
This commit is contained in:
@@ -134,7 +134,7 @@ function getAbyssRef (el: HTMLElement): void {
|
||||
}
|
||||
|
||||
async function shareAbyss (): Promise<void> {
|
||||
const fileName = `深渊${curAbyss.value.id}-${user.value.gameUid}-${Math.floor(Date.now() / 1000)}.png`;
|
||||
const fileName = `【深渊数据】${curAbyss.value.id}-${user.value.gameUid}`;
|
||||
await generateShareImg(fileName, abyssRef.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -93,7 +93,7 @@ async function refresh () {
|
||||
|
||||
async function shareRoles () {
|
||||
const rolesBox = document.querySelector(".uc-box") as HTMLElement;
|
||||
const fileName = `角色列表-${user.value.gameUid}-${Math.floor(Date.now())}.png`;
|
||||
const fileName = `【角色列表】-${user.value.gameUid}`;
|
||||
await generateShareImg(fileName, rolesBox);
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ function getTitle () {
|
||||
|
||||
async function shareRecord () {
|
||||
const recordBox = document.querySelector(".ur-box") as HTMLElement;
|
||||
const fileName = `战绩-${user.value.gameUid}-${Math.floor(Date.now() / 1000)}`;
|
||||
const fileName = `【原神战绩】-${user.value.gameUid}`;
|
||||
await generateShareImg(fileName, recordBox);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user