Skip to content

Commit da03442

Browse files
fix: chat avatar display problem
1 parent 9750c6d commit da03442

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ui/src/views/application-workflow/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ function getDetail() {
359359
detail.value.tts_model_id = res.data.tts_model
360360
detail.value.tts_type = res.data.tts_type
361361
saveTime.value = res.data?.update_time
362+
application.asyncGetAccessToken(id, loading).then((res: any) => {
363+
detail.value = { ...detail.value, ...res.data }
364+
})
362365
workflowRef.value?.clearGraphData()
363366
nextTick(() => {
364367
workflowRef.value?.render(detail.value.work_flow)

ui/src/views/application/ApplicationSetting.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ function getDetail() {
693693
applicationForm.value.tts_type = res.data.tts_type
694694
applicationForm.value.model_setting.no_references_prompt =
695695
res.data.model_setting.no_references_prompt || '{question}'
696+
application.asyncGetAccessToken(id, loading).then((res: any) => {
697+
applicationForm.value = { ...applicationForm.value, ...res.data }
698+
})
696699
})
697700
}
698701

0 commit comments

Comments
 (0)