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 @@ - +