File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/views/mall/promotion/kefu/components Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 86
86
<OrderItem
87
87
v-if =" KeFuMessageContentTypeEnum.ORDER === item.contentType"
88
88
:message =" item"
89
- class =" max-w-70 %"
89
+ class =" max-w-100 %"
90
90
/>
91
91
</MessageItem >
92
92
</div >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const useEmoji = () => {
66
66
)
67
67
for ( const path in pathList ) {
68
68
const imageModule : any = await pathList [ path ] ( )
69
- emojiPathList . value . push ( imageModule . default )
69
+ emojiPathList . value . push ( { path : path , src : imageModule . default } )
70
70
}
71
71
}
72
72
@@ -116,7 +116,8 @@ export const useEmoji = () => {
116
116
function getEmojiFileByName ( name : string ) {
117
117
for ( const emoji of emojiList ) {
118
118
if ( emoji . name === name ) {
119
- return emojiPathList . value . find ( ( item : string ) => item . indexOf ( emoji . file ) > - 1 )
119
+ const emojiPath = emojiPathList . value . find ( ( item : { path :string , src :string } ) => item . path . indexOf ( emoji . file ) > - 1 )
120
+ return emojiPath ?emojiPath . src :undefined
120
121
}
121
122
}
122
123
return false
You can’t perform that action at this time.
0 commit comments