mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 修复跳转异常
This commit is contained in:
@@ -32,11 +32,13 @@ import { onBeforeMount, ref } from "vue";
|
|||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
import TSAvatarBirth from "../../plugins/Sqlite/modules/avatarBirth.js";
|
import TSAvatarBirth from "../../plugins/Sqlite/modules/avatarBirth.js";
|
||||||
|
import { useAppStore } from "../../store/modules/app.js";
|
||||||
|
|
||||||
const isBirthday = ref<boolean>(false);
|
const isBirthday = ref<boolean>(false);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const cur = ref<TGApp.Archive.Birth.CalendarItem[]>([]);
|
const cur = ref<TGApp.Archive.Birth.CalendarItem[]>([]);
|
||||||
const next = ref<TGApp.Archive.Birth.RoleItem[]>([]);
|
const next = ref<TGApp.Archive.Birth.RoleItem[]>([]);
|
||||||
|
const appStore = useAppStore();
|
||||||
|
|
||||||
onBeforeMount(async () => {
|
onBeforeMount(async () => {
|
||||||
const check = TSAvatarBirth.isAvatarBirth();
|
const check = TSAvatarBirth.isAvatarBirth();
|
||||||
@@ -62,6 +64,7 @@ function toBirth(type: TGApp.Archive.Birth.RoleItem | true) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cur.value.length > 0 && !cur.value[0].is_subscribe) {
|
if (cur.value.length > 0 && !cur.value[0].is_subscribe) {
|
||||||
|
appStore.recentNewsType = "news";
|
||||||
router.push("/news/2/news");
|
router.push("/news/2/news");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user