♻️ refactor(types): 给笨蛋牡蛎一点小小的类型震撼

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
舰队的偶像-岛风酱!
2023-04-10 02:09:05 +00:00
committed by BTMuli
parent d7494739f6
commit e804553951
23 changed files with 438 additions and 483 deletions

View File

@@ -99,9 +99,6 @@ import TGRequest from "../core/request/TGRequest";
import TGUtils from "../core/utils/TGUtils";
import { createTGWindow } from "../utils/TGWindow";
// interface
import type TGTypes from "../core/types/TGTypes";
// store
const appStore = useAppStore();
@@ -114,10 +111,10 @@ const router = useRouter();
// 数据
const tab = ref("");
const annoCards = ref({
activity: [] as TGTypes.AnnoListCard[],
game: [] as TGTypes.AnnoListCard[],
activity: [] as BTMuli.Genshin.Announcement.ListCard[],
game: [] as BTMuli.Genshin.Announcement.ListCard[],
});
const annoData = ref({} as TGTypes.AnnoListData);
const annoData = ref({} as BTMuli.Genshin.Announcement.ListData);
onMounted(async () => {
loadingTitle.value = "正在获取公告数据";
@@ -138,7 +135,7 @@ async function switchNews () {
await router.push("/news");
}
async function toPost (item: TGTypes.AnnoListCard) {
async function toPost (item: BTMuli.Genshin.Announcement.ListCard) {
const path = router.resolve({
name: "游戏内公告",
params: {
@@ -149,7 +146,7 @@ async function toPost (item: TGTypes.AnnoListCard) {
createTGWindow(path, "游戏内公告", item.title, 960, 720, false, false);
}
async function toJson (item: TGTypes.AnnoListCard) {
async function toJson (item: BTMuli.Genshin.Announcement.ListCard) {
const path = router.resolve({
name: "游戏内公告JSON",
params: {