mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 一些优化
*修复画片初始化数量异常 *数据库更新后弹出更新日志 *调整生日转换逻辑
This commit is contained in:
@@ -202,7 +202,7 @@ async function getDeepLink(): Promise<UnlistenFn> {
|
||||
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<void> {
|
||||
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<void> {
|
||||
color: "success",
|
||||
timeout: 3000,
|
||||
});
|
||||
window.open("https://app.btmuli.ink/docs/Changelogs.html");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ const length = ref(0);
|
||||
const visible = ref(0);
|
||||
const renderItems = ref<TGApp.Archive.Birth.DrawItem[]>([]);
|
||||
const curSelect = ref<string | null>(null);
|
||||
const selectedItem = ref<TGApp.Archive.Birth.DrawItem[]>(ArcBirDraw);
|
||||
const selectedItem = ref<TGApp.Archive.Birth.DrawItem[]>([]);
|
||||
const current = ref<TGApp.Archive.Birth.DrawItem>();
|
||||
const isAether = ref<boolean>(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;
|
||||
|
||||
@@ -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])];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user