🎨 统一保存文件名格式

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

@@ -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>

View File

@@ -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);
}

View File

@@ -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);
}