diff --git a/src/App.vue b/src/App.vue index ee06f8cd..1f461a79 100644 --- a/src/App.vue +++ b/src/App.vue @@ -202,7 +202,7 @@ async function getDeepLink(): Promise { async function toUIAF(link: string) { const url = new URL(link); const app = url.searchParams.get("app"); - if (app === null) { + if (app === null || app === "") { await router.push("/achievements"); } else { await router.push("/achievements/?app=" + app); @@ -225,7 +225,6 @@ async function checkUpdate(): Promise { color: "error", timeout: 3000, }); - window.open("https://app.btmuli.ink/docs/Changelogs.html"); return; } appStore.buildTime = getBuildTime(); @@ -235,6 +234,7 @@ async function checkUpdate(): Promise { color: "success", timeout: 3000, }); + window.open("https://app.btmuli.ink/docs/Changelogs.html"); } } diff --git a/src/pages/Archive/Birthday.vue b/src/pages/Archive/Birthday.vue index ae8faafd..25b8134c 100644 --- a/src/pages/Archive/Birthday.vue +++ b/src/pages/Archive/Birthday.vue @@ -47,7 +47,7 @@ const length = ref(0); const visible = ref(0); const renderItems = ref([]); const curSelect = ref(null); -const selectedItem = ref(ArcBirDraw); +const selectedItem = ref([]); const current = ref(); const isAether = ref(false); const showOverlay = ref(false); @@ -78,7 +78,7 @@ onMounted(() => { curSelect.value = date; } else { renderItems.value = ArcBirDraw; - curSelect.value = null; + selectedItem.value = renderItems.value.slice(0, 12); } length.value = Math.ceil(renderItems.value.length / 12); visible.value = length.value > 5 ? 5 : length.value; diff --git a/src/plugins/Sqlite/modules/avatarBirth.ts b/src/plugins/Sqlite/modules/avatarBirth.ts index f2e8f8db..9888d992 100644 --- a/src/plugins/Sqlite/modules/avatarBirth.ts +++ b/src/plugins/Sqlite/modules/avatarBirth.ts @@ -1,7 +1,7 @@ /** * @file plugins/Sqlite/modules/avatarBirth.ts * @description 角色生日模块 - * @since Beta v0.4.5 + * @since Beta v0.4.6 */ import { ArcBirCalendar, ArcBirRole } from "../../../data"; @@ -21,12 +21,13 @@ function isAvatarBirth(): TGApp.Archive.Birth.CalendarItem[] { /** * @description 获取角色生日 - * @since Beta v0.4.5 + * @since Beta v0.4.6 * @param {string} roleBirthday - 角色生日 * @return {[number,number]} 角色生日 */ function getRoleBirth(roleBirthday: string): [number, number] { - return roleBirthday.split("/").map(Number) as [number, number]; + const arr: string[] = roleBirthday.split("/"); + return [Number(arr[0]), Number(arr[1])]; } /**