remove search from home
This commit is contained in:
parent
5ddad8ebc2
commit
4bfccba4c0
@ -520,19 +520,9 @@ const sortType = ref('relevance')
|
||||
const auth = await useAuth()
|
||||
const tags = useTags()
|
||||
|
||||
const [{ data: searchProjects, refresh: updateSearchProjects }, { data: notifications }] =
|
||||
await Promise.all([
|
||||
useAsyncData(
|
||||
'demoSearchProjects',
|
||||
() => useBaseFetch(`search?limit=3&query=${searchQuery.value}&index=${sortType.value}`),
|
||||
{
|
||||
transform: (result) => result.hits,
|
||||
}
|
||||
),
|
||||
useAsyncData('updatedProjects', () => useBaseFetch(`search?limit=3&query=&index=updated`), {
|
||||
transform: (result) => result.hits,
|
||||
}),
|
||||
])
|
||||
const searchProjects = ref([])
|
||||
const notifications = ref([])
|
||||
const updateSearchProjects = async () => {}
|
||||
|
||||
const val = Math.ceil(homepageProjects.length / 3)
|
||||
const rows = shallowRef([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user