From 600149f99bc5235c59e5b82c631367443cdbf77a Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 27 Dec 2025 15:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/vp-overlay-search.vue | 8 ++++---- src/pages/common/PostTopic.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/viewPost/vp-overlay-search.vue b/src/components/viewPost/vp-overlay-search.vue index bc7522b3..6b08481a 100644 --- a/src/components/viewPost/vp-overlay-search.vue +++ b/src/components/viewPost/vp-overlay-search.vue @@ -43,7 +43,7 @@ import useBBSStore from "@store/bbs.js"; import { storeToRefs } from "pinia"; import { computed, onMounted, ref, shallowRef, useTemplateRef, watch } from "vue"; -type ToPostSearchProps = { gid: string; keyword?: string }; +type ToPostSearchProps = { gid: number; keyword?: string }; type SortSelect = { text: string; value: number }; const sortOrderList: Array = [ @@ -73,7 +73,7 @@ const label = computed(() => { }); onMounted(async () => { - gameId.value = props.gid; + gameId.value = props.gid.toString(); if (props.keyword && props.keyword !== "") search.value = props.keyword; if (visible.value) await searchPosts(); }); @@ -124,8 +124,8 @@ watch( watch( () => props.gid, async () => { - if (gameId.value !== props.gid) { - gameId.value = props.gid; + if (gameId.value !== props.gid.toString()) { + gameId.value = props.gid.toString(); results.value = []; lastId.value = ""; isLast.value = false; diff --git a/src/pages/common/PostTopic.vue b/src/pages/common/PostTopic.vue index 17509170..1356e5c7 100644 --- a/src/pages/common/PostTopic.vue +++ b/src/pages/common/PostTopic.vue @@ -92,7 +92,7 @@ - +