-
@@ -84,7 +84,7 @@
{{ item.data.reply }}
- mdi-heart
+ mdi-thumb-up
{{ item.data.like }}
@@ -128,7 +128,7 @@
-
@@ -172,7 +172,7 @@
{{ item.data.reply }}
- mdi-heart
+ mdi-thumb-up
{{ item.data.like }}
@@ -202,7 +202,7 @@
-
@@ -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";