File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
component/operation-button Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 138138 </span >
139139 <span class =" ml-8" >
140140 <el-tooltip effect =" dark" :content =" $t('chat.share')" placement =" top" >
141- <el-button text @click.stop =" clickShareHandle(props.data.record_id)" >
141+ <el-button text @click.stop =" clickShareHandle(props.data.record_id)" :disabled = " chat_loading " >
142142 <AppIcon class =" color-secondary" iconName =" app-share" ></AppIcon >
143143 </el-button >
144144 </el-tooltip >
Original file line number Diff line number Diff line change @@ -877,6 +877,7 @@ watch(
877877
878878defineExpose ({
879879 setScrollBottom ,
880+ loading ,
880881})
881882 </script >
882883<style lang="scss">
Original file line number Diff line number Diff line change 8888 <el-dropdown-menu >
8989 <el-dropdown-item
9090 @click.stop =" shareHandle()"
91- :disabled =" currentChatId !== row.id"
91+ :disabled =" currentChatId !== row.id && chat_loading "
9292 >
9393 <AppIcon iconName =" app-share" class =" color-secondary" ></AppIcon >
9494 {{ $t('chat.share') }}
@@ -225,6 +225,7 @@ const props = defineProps<{
225225 leftLoading? : boolean
226226 currentChatId: string
227227 isPcCollapse? : boolean
228+ chat_loading? : boolean
228229}>()
229230const emit = defineEmits ([
230231 ' newChat' ,
Original file line number Diff line number Diff line change 3333 @refreshFieldTitle =" refreshFieldTitle"
3434 @clickShare =" clickShareHandle"
3535 :isPcCollapse =" isPcCollapse"
36+ :chat-loading =" AiChatRef?.loading"
3637 >
3738 <div class =" user-info p-16 cursor" >
3839 <el-avatar
126127 {{ paginationConfig.total }} {{ $t('chat.question_count') }}
127128 </span >
128129 <el-tooltip effect =" dark" :content =" $t('chat.share')" placement =" top" >
129- <el-button text class =" ml-12" @click =" clickShareHandle" >
130+ <el-button
131+ text
132+ class =" ml-12"
133+ @click =" clickShareHandle"
134+ :disabled =" AiChatRef?.loading"
135+ >
130136 <AppIcon iconName =" app-share" ></AppIcon >
131137 </el-button >
132138 </el-tooltip >
You can’t perform that action at this time.
0 commit comments