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

Update index.vue

上级 f891fc74
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="flex items-center justify-center h-full max-w-full"> <div class="flex items-center justify-center h-full max-w-full">
<div class="max-w-screen-sm w-full flex flex-col space-y-4"> <div class="max-w-screen-sm w-full flex flex-col space-y-4">
<UTextarea <UTextarea
v-model="query"
autoresize autoresize
placeholder="输入搜索内容..." placeholder="输入搜索内容..."
/> />
...@@ -22,9 +23,10 @@ ...@@ -22,9 +23,10 @@
</div> </div>
</template> </template>
<script setup> <script setup>
const repos = ['keycloak', 'ViewUIPlus'] const query = ref(null)
const selectedRepo = ref(null) const selectedRepo = ref(null)
const repos = ['keycloak', 'ViewUIPlus']
const handleSearch = () => { const handleSearch = () => {
navigateTo(`/search/1?query=${query.value}&repo=${selectedRepo.value}`);
} }
</script> </script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册