File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 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 >
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+
302308const 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 ;
You can’t perform that action at this time.
0 commit comments