Skip to content

Commit 89171a9

Browse files
committed
feat: chat greeting css
1 parent ba757e2 commit 89171a9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

frontend/src/views/chat/index.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
/>
4848
</el-popover>
4949
<el-tooltip effect="dark" :content="t('qa.new_chat')" placement="bottom">
50-
<el-button link type="primary" class="icon-btn" @click="createNewChat">
50+
<el-button link type="primary" class="icon-btn" @click="createNewChatSimple">
5151
<el-icon>
5252
<icon_new_chat_outlined />
5353
</el-icon>
@@ -73,7 +73,7 @@
7373
size="large"
7474
type="primary"
7575
class="greeting-btn"
76-
@click="createNewChat"
76+
@click="createNewChatSimple"
7777
>
7878
<span class="inner-icon">
7979
<el-icon>
@@ -299,6 +299,12 @@ const goEmpty = () => {
299299
inputMessage.value = ''
300300
}
301301
302+
const createNewChatSimple = async () => {
303+
currentChat.value = new ChatInfo()
304+
currentChatId.value = undefined
305+
await createNewChat()
306+
}
307+
302308
const createNewChat = async () => {
303309
goEmpty()
304310
if (isAssistant.value) {
@@ -760,9 +766,7 @@ defineExpose({
760766
align-items: center;
761767
762768
.welcome-content {
763-
padding: 12px;
764-
765-
width: fit-content;
769+
width: 100%;
766770
max-width: 800px;
767771
display: flex;
768772
gap: 16px;

0 commit comments

Comments
 (0)