6666 <auto-tooltip :content =" row.abstract" >
6767 {{ row.abstract }}
6868 </auto-tooltip >
69- <div @click.stop v-if =" mouseId === row.id && row.id !== 'new'" >
70- <el-button style =" padding : 0 " link @click.stop =" deleteLog(row)" >
71- <el-icon ><Delete /></el-icon >
72- </el-button >
69+ <div @click.stop v-show =" mouseId === row.id && row.id !== 'new'" >
70+ <el-dropdown trigger =" click" :teleported =" false" >
71+ <el-icon class =" rotate-90 mt-4" ><MoreFilled /></el-icon >
72+ <template #dropdown >
73+ <el-dropdown-menu >
74+ <el-dropdown-item @click.stop =" editLogTitle(row)" >
75+ <el-icon ><EditPen /></el-icon >
76+ {{ $t('common.edit') }}
77+ </el-dropdown-item >
78+ <el-dropdown-item @click.stop =" deleteLog(row)" >
79+ <el-icon ><Delete /></el-icon >
80+ {{ $t('common.delete') }}
81+ </el-dropdown-item >
82+ </el-dropdown-menu >
83+ </template >
84+ </el-dropdown >
7385 </div >
7486 </div >
7587 </template >
145157 </div >
146158 </div >
147159 </div >
160+ <EditTitleDialog ref =" EditTitleDialogRef" @refresh =" refreshFieldTitle" />
148161</template >
149162
150163<script setup lang="ts">
@@ -155,14 +168,13 @@ import { isAppIcon } from '@/utils/application'
155168import useStore from ' @/stores'
156169import useResize from ' @/layout/hooks/useResize'
157170import { hexToRgba } from ' @/utils/theme'
171+ import EditTitleDialog from ' ./EditTitleDialog.vue'
158172import { t } from ' @/locales'
159173useResize ()
160174
161175const { user, log, common } = useStore ()
162176
163- const isDefaultTheme = computed (() => {
164- return user .isDefaultTheme ()
165- })
177+ const EditTitleDialogRef = ref ()
166178
167179const isCollapse = ref (false )
168180
@@ -216,6 +228,13 @@ const mouseId = ref('')
216228function mouseenter(row : any ) {
217229 mouseId .value = row .id
218230}
231+
232+ function editLogTitle(row : any ) {
233+ EditTitleDialogRef .value .open (row , applicationDetail .value .id )
234+ }
235+ function refreshFieldTitle() {
236+ getChatLog (applicationDetail .value .id )
237+ }
219238function deleteLog(row : any ) {
220239 log .asyncDelChatClientLog (applicationDetail .value .id , row .id , left_loading ).then (() => {
221240 if (currentChatId .value === row .id ) {
0 commit comments