From a69fb8ca500327c67d43b660309a6bd0b312bf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 6 Dec 2024 19:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20TGApp=20is=20not=20defined?= =?UTF-8?q?=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pageNews/to-channel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/pageNews/to-channel.vue b/src/components/pageNews/to-channel.vue index 04b7fd91..212ff3b4 100644 --- a/src/components/pageNews/to-channel.vue +++ b/src/components/pageNews/to-channel.vue @@ -31,7 +31,7 @@ import { storeToRefs } from "pinia"; import { computed } from "vue"; import { useRouter } from "vue-router"; -import { useAppStore } from "../../store/modules/app.js"; +import { NewsType, useAppStore } from "../../store/modules/app.js"; import { ToChannelItem } from "../../web/constant/bbs.js"; import TGConstant from "../../web/constant/TGConstant.js"; import TOverlay from "../app/t-overlay.vue"; @@ -55,7 +55,7 @@ async function toChannel(item: ToChannelItem): Promise { } visible.value = false; let link = `/news/${item.gid}/{type}`; - if (recentNewsType.value satisfies TGApp.App.Store.NewsType) { + if (recentNewsType.value satisfies NewsType) { link = link.replace("{type}", recentNewsType.value); } else { link = link.replace("{type}", "notice");