feat: hide create new chat button in empty chat

This commit is contained in:
ulleo
2025-06-30 17:27:33 +08:00
parent 3d8c0431be
commit 01d08a89d0
+6 -1
View File
@@ -29,7 +29,12 @@
<div class="logo">SQLBot</div>
<div>{{ t('qa.greeting') }}</div>
<div class="sub">{{ t('qa.description') }}</div>
<el-button size="large" type="primary" @click="createNewChat">
<el-button
v-if="currentChatId === undefined"
size="large"
type="primary"
@click="createNewChat"
>
<el-icon>
<Plus />
</el-icon>