update: Add conditional rendering for delete button and user info button in ChatHeader for improved functionality
This commit is contained in:
parent
d860176c37
commit
b0d9c7f521
|
@ -20,7 +20,7 @@
|
||||||
<HistoryButton v-if="settingsStore.sidebarCollapsed" :icon-only="false" class="title-history-btn" />
|
<HistoryButton v-if="settingsStore.sidebarCollapsed" :icon-only="false" class="title-history-btn" />
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<el-tooltip content="删除会话" placement="bottom">
|
<el-tooltip content="删除会话" placement="bottom" v-if="chatStore.conversationId">
|
||||||
<el-button
|
<el-button
|
||||||
class="action-btn delete-btn"
|
class="action-btn delete-btn"
|
||||||
:icon="Delete"
|
:icon="Delete"
|
||||||
|
@ -38,13 +38,12 @@
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :content="hasBackground ? '客户背景' : '暂无客户背景信息'" placement="bottom">
|
<el-tooltip :content="hasBackground ? '客户背景' : '暂无客户背景信息'" placement="bottom" v-if="hasBackground">
|
||||||
<el-button
|
<el-button
|
||||||
class="action-btn"
|
class="action-btn"
|
||||||
:icon="User"
|
:icon="User"
|
||||||
@click="showUserInfo = true"
|
@click="showUserInfo = true"
|
||||||
text
|
text
|
||||||
:disabled="!hasBackground"
|
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
Loading…
Reference in New Issue