Skip to content

Commit

Permalink
🐛 fix TGApp is not defined again
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Dec 6, 2024
1 parent d15cece commit a69fb8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/pageNews/to-channel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -55,7 +55,7 @@ async function toChannel(item: ToChannelItem): Promise<void> {
}
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");
Expand Down

0 comments on commit a69fb8c

Please sign in to comment.