diff --git a/components/i/Create.vue b/components/i/Create.vue index 0594657e43a22ea2e62b39dbc356a3a29ae4d54d..36e1726a552ffdc5f06ed4d9b3b9b3cf6e5b4b56 100644 --- a/components/i/Create.vue +++ b/components/i/Create.vue @@ -111,6 +111,13 @@ const handleSearch = async () => { navigateTo(`/search/${data.value.data.c_id}`) emits('search') } +function handleQuickSearch (title) { + query.value = title + handleSearch() +} +defineExpose({ + handleQuickSearch +}) function handleClearRepo () { selectedRepo.value = '' } diff --git a/components/i/Logo.vue b/components/i/Logo.vue index 4527136ff1c6a5b1aa6e9993f67e46698a742302..c9e0f1c9a37ae0a3596a3fc92ad648300585be35 100644 --- a/components/i/Logo.vue +++ b/components/i/Logo.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/components/i/SearchHistory.vue b/components/i/SearchHistory.vue index a09594d7b2a0bd33f9c6a6a9edd98c0dc79bd217..982b1cbd139c61dfb93cf15eed7051f9b4b907b8 100644 --- a/components/i/SearchHistory.vue +++ b/components/i/SearchHistory.vue @@ -29,7 +29,7 @@ :to="`/search/${item.c_id}`" @click="handleClickItem" > -
{{ item.title }}
+
{{ item.title }}
diff --git a/pages/index.vue b/pages/index.vue index 40ccc2e5d40bf2741f3a88ba929817a55a624c36..c703ba69022cdbd45f934b5aa34a123e5a3d4d75 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2,6 +2,43 @@
开源搜索,直达结果
- + +
+ +
+ \ No newline at end of file