File tree 11 files changed +90
-30
lines changed
11 files changed +90
-30
lines changed Original file line number Diff line number Diff line change 40
40
<div ref =" dialogScrollbar" class =" ai-chat__content p-24 chat-width" >
41
41
<div class =" item-content mb-16" v-if =" !props.available || (props.data?.prologue && !log)" >
42
42
<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" />
45
51
</div >
46
52
47
53
<div class =" content" >
96
102
<!-- 回答 -->
97
103
<div class =" item-content mb-16 lighter" >
98
104
<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
+ />
100
112
<LogoIcon v-else height =" 32px" width =" 32px" />
101
113
</div >
102
114
Original file line number Diff line number Diff line change 36
36
:size =" 32"
37
37
style =" background : none "
38
38
>
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
+ />
40
45
</AppAvatar >
41
46
<AppAvatar
42
47
v-else-if =" detail?.name"
Original file line number Diff line number Diff line change 18
18
:size =" 32"
19
19
style =" background : none "
20
20
>
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
+ />
22
27
</AppAvatar >
23
28
<AppAvatar
24
29
v-else-if =" detail?.name"
@@ -353,23 +358,22 @@ function getDetail() {
353
358
?.filter ((v : any ) => v .id === ' base-node' )
354
359
.map ((v : any ) => {
355
360
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
+ })
363
367
: 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
+ : []
373
377
})
374
378
})
375
379
}
Original file line number Diff line number Diff line change 90
90
:size =" 32"
91
91
style =" background : none "
92
92
>
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
+ />
94
99
</AppAvatar >
95
100
<AppAvatar
96
101
v-else-if =" detail?.name"
Original file line number Diff line number Diff line change 509
509
:size =" 32"
510
510
style =" background : none "
511
511
>
512
- <img :src =" applicationForm?.icon" alt =" " />
512
+ <img
513
+ :src =" applicationForm?.icon"
514
+ alt =" "
515
+ style =" width : 32px ; height : 32px ; display : block "
516
+ />
513
517
</AppAvatar >
514
518
<AppAvatar
515
519
v-else-if =" applicationForm?.name"
Original file line number Diff line number Diff line change 51
51
style =" background : none "
52
52
class =" mr-8"
53
53
>
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
+ />
55
60
</AppAvatar >
56
61
<AppAvatar
57
62
v-else-if =" item?.name"
@@ -175,7 +180,7 @@ function openCreateDialog() {
175
180
} else {
176
181
MsgConfirm (` 提示 ` , ' 社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。' , {
177
182
cancelButtonText: ' 确定' ,
178
- confirmButtonText: ' 购买专业版' ,
183
+ confirmButtonText: ' 购买专业版'
179
184
})
180
185
.then (() => {
181
186
window .open (' https://maxkb.cn/#.html' , ' _blank' )
Original file line number Diff line number Diff line change 8
8
:size =" 32"
9
9
style =" background : none "
10
10
>
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
+ />
12
17
</AppAvatar >
13
18
<AppAvatar
14
19
v-else-if =" application_profile?.name"
Original file line number Diff line number Diff line change 9
9
:size =" 32"
10
10
style =" background : none "
11
11
>
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
+ />
13
18
</AppAvatar >
14
19
<AppAvatar
15
20
v-else-if =" applicationDetail?.name"
Original file line number Diff line number Diff line change 16
16
:size =" 32"
17
17
style =" background : none "
18
18
>
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
+ />
20
25
</AppAvatar >
21
26
<AppAvatar
22
27
v-else-if =" applicationDetail?.name"
Original file line number Diff line number Diff line change 17
17
:size =" 32"
18
18
style =" background : none "
19
19
>
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
+ />
21
26
</AppAvatar >
22
27
<AppAvatar
23
28
v-else-if =" applicationDetail?.name"
Original file line number Diff line number Diff line change 73
73
style =" background : none "
74
74
class =" mr-12"
75
75
>
76
- <img :src =" item?.icon" alt =" " />
76
+ <el-image
77
+ :src =" item?.icon"
78
+ alt =" "
79
+ fit =" cover"
80
+ style =" width : 32px ; height : 32px ; display : block "
81
+ />
77
82
</AppAvatar >
78
83
<AppAvatar
79
84
v-else-if =" item?.name"
You can’t perform that action at this time.
0 commit comments