diff --git a/src/components/home/t-calendar-birth.vue b/src/components/home/t-calendar-birth.vue index d6969b78..0ba2a317 100644 --- a/src/components/home/t-calendar-birth.vue +++ b/src/components/home/t-calendar-birth.vue @@ -32,11 +32,13 @@ import { onBeforeMount, ref } from "vue"; import { useRouter } from "vue-router"; import TSAvatarBirth from "../../plugins/Sqlite/modules/avatarBirth.js"; +import { useAppStore } from "../../store/modules/app.js"; const isBirthday = ref(false); const router = useRouter(); const cur = ref([]); const next = ref([]); +const appStore = useAppStore(); onBeforeMount(async () => { const check = TSAvatarBirth.isAvatarBirth(); @@ -62,6 +64,7 @@ function toBirth(type: TGApp.Archive.Birth.RoleItem | true) { return; } if (cur.value.length > 0 && !cur.value[0].is_subscribe) { + appStore.recentNewsType = "news"; router.push("/news/2/news"); return; }