diff --git a/packages/frontend/src/pages/search.vue b/packages/frontend/src/pages/search.vue index fc09565d85..db3ada3cf5 100644 --- a/packages/frontend/src/pages/search.vue +++ b/packages/frontend/src/pages/search.vue @@ -59,12 +59,14 @@ import * as os from '@/os'; import { $i } from '@/account'; import { instance } from '@/instance'; import MkInfo from '@/components/MkInfo.vue'; +import { $ref } from 'vue/macros'; const XNote = defineAsyncComponent(() => import('./search.note.vue')); const XUser = defineAsyncComponent(() => import('./search.user.vue')); let tab = $ref('note'); let searchQuery = $ref(''); +let key = $ref(''); let searchOrigin = $ref('combined'); let eventSort = $ref('startDate'); let notePagination = $ref(); @@ -75,12 +77,6 @@ let endDate = $ref(null); const notesSearchAvailable = (($i == null && instance.policies.canSearchNotes) || ($i != null && $i.policies.canSearchNotes)); -onMounted(() => { - tab = props.type ?? 'note'; - searchQuery = props.query ?? ''; - searchOrigin = props.origin ?? 'combined'; -}); - async function search() { const query = searchQuery.toString().trim();