提交 a146324b 编写于 作者: View Design's avatar View Design

Merge branch 'main' of gitcode.com:git_bot/ai-fe

......@@ -2,7 +2,6 @@
<div class="w-full items-center flex flex-col">
<iSearchHeader :query="state.query" @update-query="handleUpdateQuery" />
<div class="container min-h-svh max-w-screen-lg flex flex-col space-y-6 p-6 mb-6 pb-0" id="scrollElement">
<template v-if="askingData.question">
<div class="grid">
<h1 class="text-3xl">{{ state.query }}</h1>
</div>
......@@ -10,7 +9,6 @@
<UIcon name="i-simple-icons-github" />
{{ state.repo }}
</section>
</template>
<template v-for="(item, index) in data" :key="index">
<div class="grid" v-if="index !== 0">
<h2 class="text-3xl" :id="index + 1">{{ item.question }}</h2>
......@@ -28,7 +26,6 @@
<h2 class="text-3xl" :id="data.length + 1">{{ askingData.question }}</h2>
</div>
<ISearchContent
v-if="askingData.question"
:item="askingData"
:asking="asking"
ref="askingRef"
......@@ -276,12 +273,9 @@ async function init () {
initSearchRecords(records)
}
await init()
nextTick( () => {
onMounted( () => {
if (data.value.length === 0 && state.query) {
generateFetchData(state.query)
} else {
asking.value = false
askingData.value = {}
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册