File tree Expand file tree Collapse file tree 11 files changed +90
-30
lines changed
Expand file tree Collapse file tree 11 files changed +90
-30
lines changed Original file line number Diff line number Diff line change 4040 <div ref =" dialogScrollbar" class =" ai-chat__content p-24 chat-width" >
4141 <div class =" item-content mb-16" v-if =" !props.available || (props.data?.prologue && !log)" >
4242 <div class =" avatar" >
43- <img v-if =" data.avatar" :src =" data.avatar" height =" 32px" width =" 32px" />
44- <LogoIcon v-else height =" 32px" width =" 32px" />
43+ <el-image
44+ v-if =" data.avatar"
45+ :src =" data.avatar"
46+ alt =" "
47+ fit =" cover"
48+ style =" width : 32px ; height : 32px ; display : block "
49+ />
50+ <LogoIcon v-else height =" 32px" width =" 32px" />
4551 </div >
4652
4753 <div class =" content" >
96102 <!-- 回答 -->
97103 <div class =" item-content mb-16 lighter" >
98104 <div class =" avatar" >
99- <img v-if =" data.avatar" :src =" data.avatar" height =" 32px" width =" 32px" />
105+ <el-image
106+ v-if =" data.avatar"
107+ :src =" data.avatar"
108+ alt =" "
109+ fit =" cover"
110+ style =" width : 30px ; height : 30px ; display : block "
111+ />
100112 <LogoIcon v-else height =" 32px" width =" 32px" />
101113 </div >
102114
Original file line number Diff line number Diff line change 3636 :size =" 32"
3737 style =" background : none "
3838 >
39- <img :src =" detail?.icon" alt =" " />
39+ <el-image
40+ :src =" detail?.icon"
41+ alt =" "
42+ fit =" cover"
43+ style =" width : 32px ; height : 32px ; display : block "
44+ />
4045 </AppAvatar >
4146 <AppAvatar
4247 v-else-if =" detail?.name"
Original file line number Diff line number Diff line change 1818 :size =" 32"
1919 style =" background : none "
2020 >
21- <img :src =" detail?.icon" alt =" " />
21+ <el-image
22+ :src =" detail?.icon"
23+ alt =" "
24+ fit =" cover"
25+ style =" width : 32px ; height : 32px ; display : block "
26+ />
2227 </AppAvatar >
2328 <AppAvatar
2429 v-else-if =" detail?.name"
@@ -353,23 +358,22 @@ function getDetail() {
353358 ?.filter ((v : any ) => v .id === ' base-node' )
354359 .map ((v : any ) => {
355360 apiInputParams .value = v .properties .api_input_field_list
356- ? v .properties .api_input_field_list
357- .map ((v : any ) => {
358- return {
359- name: v .variable ,
360- value: v .default_value
361- }
362- })
361+ ? v .properties .api_input_field_list .map ((v : any ) => {
362+ return {
363+ name: v .variable ,
364+ value: v .default_value
365+ }
366+ })
363367 : v .properties .input_field_list
364- ? v .properties .input_field_list
365- .filter ((v : any ) => v .assignment_method === ' api_input' )
366- .map ((v : any ) => {
367- return {
368- name: v .variable ,
369- value: v .default_value
370- }
371- })
372- : []
368+ ? v .properties .input_field_list
369+ .filter ((v : any ) => v .assignment_method === ' api_input' )
370+ .map ((v : any ) => {
371+ return {
372+ name: v .variable ,
373+ value: v .default_value
374+ }
375+ })
376+ : []
373377 })
374378 })
375379}
Original file line number Diff line number Diff line change 9090 :size =" 32"
9191 style =" background : none "
9292 >
93- <img :src =" detail?.icon" alt =" " />
93+ <el-image
94+ :src =" detail?.icon"
95+ alt =" "
96+ fit =" cover"
97+ style =" width : 32px ; height : 32px ; display : block "
98+ />
9499 </AppAvatar >
95100 <AppAvatar
96101 v-else-if =" detail?.name"
Original file line number Diff line number Diff line change 509509 :size =" 32"
510510 style =" background : none "
511511 >
512- <img :src =" applicationForm?.icon" alt =" " />
512+ <img
513+ :src =" applicationForm?.icon"
514+ alt =" "
515+ style =" width : 32px ; height : 32px ; display : block "
516+ />
513517 </AppAvatar >
514518 <AppAvatar
515519 v-else-if =" applicationForm?.name"
Original file line number Diff line number Diff line change 5151 style =" background : none "
5252 class =" mr-8"
5353 >
54- <img :src =" item?.icon" alt =" " />
54+ <el-image
55+ :src =" item?.icon"
56+ alt =" "
57+ fit =" cover"
58+ style =" width : 32px ; height : 32px ; display : block "
59+ />
5560 </AppAvatar >
5661 <AppAvatar
5762 v-else-if =" item?.name"
@@ -175,7 +180,7 @@ function openCreateDialog() {
175180 } else {
176181 MsgConfirm (` 提示 ` , ' 社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。' , {
177182 cancelButtonText: ' 确定' ,
178- confirmButtonText: ' 购买专业版' ,
183+ confirmButtonText: ' 购买专业版'
179184 })
180185 .then (() => {
181186 window .open (' https://maxkb.cn/pricing.html' , ' _blank' )
Original file line number Diff line number Diff line change 88 :size =" 32"
99 style =" background : none "
1010 >
11- <img :src =" application_profile?.icon" alt =" " />
11+ <el-image
12+ :src =" application_profile?.icon"
13+ alt =" "
14+ fit =" cover"
15+ style =" width : 32px ; height : 32px ; display : block "
16+ />
1217 </AppAvatar >
1318 <AppAvatar
1419 v-else-if =" application_profile?.name"
Original file line number Diff line number Diff line change 99 :size =" 32"
1010 style =" background : none "
1111 >
12- <img :src =" applicationDetail?.icon" alt =" " />
12+ <el-image
13+ :src =" applicationDetail?.icon"
14+ alt =" "
15+ fit =" cover"
16+ style =" width : 32px ; height : 32px ; display : block "
17+ />
1318 </AppAvatar >
1419 <AppAvatar
1520 v-else-if =" applicationDetail?.name"
Original file line number Diff line number Diff line change 1616 :size =" 32"
1717 style =" background : none "
1818 >
19- <img :src =" applicationDetail?.icon" alt =" " />
19+ <el-image
20+ :src =" applicationDetail?.icon"
21+ alt =" "
22+ fit =" cover"
23+ style =" width : 32px ; height : 32px ; display : block "
24+ />
2025 </AppAvatar >
2126 <AppAvatar
2227 v-else-if =" applicationDetail?.name"
Original file line number Diff line number Diff line change 1717 :size =" 32"
1818 style =" background : none "
1919 >
20- <img :src =" applicationDetail?.icon" alt =" " />
20+ <el-image
21+ :src =" applicationDetail?.icon"
22+ alt =" "
23+ fit =" cover"
24+ style =" width : 32px ; height : 32px ; display : block "
25+ />
2126 </AppAvatar >
2227 <AppAvatar
2328 v-else-if =" applicationDetail?.name"
You can’t perform that action at this time.
0 commit comments