From 911a21e54df5d7c9402b254a8e263ed56cee372c Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sun, 2 Jul 2023 09:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E4=BF=AE=E6=AD=A3=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/t-news.vue | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/t-news.vue b/src/views/t-news.vue index 90937572..9d792ff5 100644 --- a/src/views/t-news.vue +++ b/src/views/t-news.vue @@ -15,9 +15,9 @@ mdi-view-list userIcon -
+
userPendant
@@ -84,7 +84,7 @@ {{ item.data.reply }}
- mdi-heart + mdi-thumb-up {{ item.data.like }}
@@ -128,7 +128,7 @@
userIcon
-
+
userPendant
@@ -172,7 +172,7 @@ {{ item.data.reply }}
- mdi-heart + mdi-thumb-up {{ item.data.like }}
@@ -202,7 +202,7 @@
userIcon
-
+
userPendant
@@ -246,7 +246,7 @@ {{ item.data.reply }}
- mdi-heart + mdi-thumb-up {{ item.data.like }}
@@ -307,9 +307,9 @@ const search = ref(""); const tab = ref(""); const showList = ref(false); const postData = ref({ - notice: [] as TGApp.Plugins.Mys.News.RenderCard[], - activity: [] as TGApp.Plugins.Mys.News.RenderCard[], - news: [] as TGApp.Plugins.Mys.News.RenderCard[], + notice: [], + activity: [], + news: [], }); const rawData = ref({ notice: { @@ -341,7 +341,7 @@ onMounted(async () => { }, 1500); }); -async function firstLoad(data: string) { +async function firstLoad(data: string): Promise { if (rawData.value.activity.lastId !== 0 && rawData.value.news.lastId !== 0) { return; } @@ -366,7 +366,7 @@ async function firstLoad(data: string) { }, 1500); } -async function switchAnno() { +async function switchAnno(): Promise { await router.push("/announcements"); } @@ -403,7 +403,7 @@ async function loadMore(data: "notice" | "activity" | "news"): Promise { }, 1500); } -async function toPost(item: TGApp.Plugins.Mys.News.RenderCard | string) { +async function toPost(item: TGApp.Plugins.Mys.News.RenderCard | string): Promise { if (typeof item === "string") { const path = router.resolve({ name: "帖子详情", @@ -424,7 +424,7 @@ async function toPost(item: TGApp.Plugins.Mys.News.RenderCard | string) { } } -async function toJson(item: TGApp.Plugins.Mys.News.RenderCard | string) { +async function toJson(item: TGApp.Plugins.Mys.News.RenderCard | string): Promise { if (typeof item === "string") { const path = router.resolve({ name: "帖子详情(JSON)", @@ -445,7 +445,7 @@ async function toJson(item: TGApp.Plugins.Mys.News.RenderCard | string) { } } -async function searchPost() { +async function searchPost(): Promise { if (search.value === "") { snackbarText.value = "请输入搜索内容"; snackbarColor.value = "error";