Skip to content

Commit

Permalink
🔥 移除无用文件
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Mar 19, 2024
1 parent 8996c1b commit 66c6d3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 217 deletions.
4 changes: 2 additions & 2 deletions src/pages/common/News.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function firstLoad(key: NewsKey): Promise<void> {
}
loadingTitle.value = `正在获取${rawData.value[key].name}数据...`;
loading.value = true;
const getData = await Mys.News.get(gid, NewsType[key]);
const getData = await Mys.News(gid, NewsType[key]);
rawData.value[key].isLast = getData.is_last;
rawData.value[key].lastId = getData.list.length;
postData.value[key] = getData.list;
Expand Down Expand Up @@ -166,7 +166,7 @@ async function loadMore(key: NewsKey): Promise<void> {
}
loadingTitle.value = `正在获取${rawData.value[key].name}数据...`;
loading.value = true;
const getData = await Mys.News.get(gid, NewsType[key], 20, rawData.value[key].lastId);
const getData = await Mys.News(gid, NewsType[key], 20, rawData.value[key].lastId);
rawData.value[key].lastId = rawData.value[key].lastId + getData.list.length;
rawData.value[key].isLast = getData.is_last;
postData.value[key] = postData.value[key].concat(getData.list);
Expand Down
14 changes: 2 additions & 12 deletions src/plugins/Mys/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file plugins/Mys/index.ts
* @description Mys plugin index
* @since Beta v0.4.4
* @since Beta v0.4.5
*/

import MysApi from "./api";
Expand All @@ -17,9 +17,7 @@ import getPostData from "./request/getPostData";
import { getVoteInfo, getVoteResult } from "./request/getVoteData";
import { getGachaCard } from "./utils/getGachaCard";
import getLotteryCard from "./utils/getLotteryCard";
import { getActivityCard, getNewsCard, getNoticeCard } from "./utils/getNewsCard";
import getPositionCard from "./utils/getPositionCard";
import { getPostsCard } from "./utils/getPostsCard";

const Mys = {
Api: MysApi,
Expand All @@ -32,7 +30,6 @@ const Mys = {
},
Posts: {
get: getForumList,
card: getPostsCard,
nav: getHomeNavigator,
},
Gacha: {
Expand All @@ -43,14 +40,7 @@ const Mys = {
get: getPositionData,
card: getPositionCard,
},
News: {
get: getNewsList,
card: {
notice: getNoticeCard,
activity: getActivityCard,
news: getNewsCard,
},
},
News: getNewsList,
Lottery: {
get: getLotteryData,
card: getLotteryCard,
Expand Down
151 changes: 0 additions & 151 deletions src/plugins/Mys/utils/getNewsCard.ts

This file was deleted.

52 changes: 0 additions & 52 deletions src/plugins/Mys/utils/getPostsCard.ts

This file was deleted.

0 comments on commit 66c6d3a

Please sign in to comment.