mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: hide create new chat button in empty chat
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user