mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 fix TGApp is not defined again
This commit is contained in:
@@ -31,7 +31,7 @@ import { storeToRefs } from "pinia";
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
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 { ToChannelItem } from "../../web/constant/bbs.js";
|
||||||
import TGConstant from "../../web/constant/TGConstant.js";
|
import TGConstant from "../../web/constant/TGConstant.js";
|
||||||
import TOverlay from "../app/t-overlay.vue";
|
import TOverlay from "../app/t-overlay.vue";
|
||||||
@@ -55,7 +55,7 @@ async function toChannel(item: ToChannelItem): Promise<void> {
|
|||||||
}
|
}
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
let link = `/news/${item.gid}/{type}`;
|
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);
|
link = link.replace("{type}", recentNewsType.value);
|
||||||
} else {
|
} else {
|
||||||
link = link.replace("{type}", "notice");
|
link = link.replace("{type}", "notice");
|
||||||
|
|||||||
Reference in New Issue
Block a user