🌱 初步搞了下布局

This commit is contained in:
BTMuli
2023-05-31 22:12:25 +08:00
parent 8fbac6112d
commit 87a929a26e
4 changed files with 85 additions and 26 deletions

View File

@@ -21,7 +21,6 @@ export function transCharacterData (data: TGApp.Game.Abyss.CharacterData[]): str
star: item.rarity,
};
}) as TGApp.Sqlite.Abyss.Character[];
console.log(JSON.stringify(res));
return JSON.stringify(res);
}

View File

@@ -14,8 +14,8 @@
export function timeToSecond (timestamp: string): string {
const date = new Date(Number(timestamp) * 1000);
const year = date.getFullYear();
const month = date.getMonth() + 1;
const day = date.getDate();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
const hour = String(date.getHours()).padStart(2, "0");
const minute = String(date.getMinutes()).padStart(2, "0");
const second = String(date.getSeconds()).padStart(2, "0");