diff --git a/components/blog/BlogListModelByYear.vue b/components/blog/BlogListModelByYear.vue index c88d2d3c7..7d4efffc9 100644 --- a/components/blog/BlogListModelByYear.vue +++ b/components/blog/BlogListModelByYear.vue @@ -6,7 +6,6 @@ class="no-underline" :to="{ path: `/blog/${inThatYear[0]}`, - query: { q: q ? q : undefined }, }" >

{{ inThatYear[0] }}

@@ -76,7 +75,6 @@ } export interface Props { contents: INuxtContentResult[] - q: string showYear: boolean } export default Vue.extend({ @@ -86,10 +84,6 @@ type: Array, default: () => [], }, - q: { - type: String, - default: '', - }, showYear: { type: Boolean, default: true, diff --git a/lib/model/content/model.ts b/lib/model/content/model.ts index 19229258c..fd2ec8cf0 100644 --- a/lib/model/content/model.ts +++ b/lib/model/content/model.ts @@ -141,9 +141,6 @@ export const queryNuxtContent = async ( month?: string, ): Promise => { let contents: INuxtContentResult[] = [] - const { query = {} as Context['route']['query'] } = route - let { q = '' } = query - q = typeof q === 'string' ? q : '' /** * Bookmarks: * - https://github.com/techfort/LokiJS/wiki/Query-Examples#find-queries