Skip to content

Commit 9faad64

Browse files
committed
【功能修复】商城:发送商品显示不全问题和打包后客服聊天表情缺失问题
1 parent beaf533 commit 9faad64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/views/mall/promotion/kefu/components/KeFuMessageList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<OrderItem
8787
v-if="KeFuMessageContentTypeEnum.ORDER === item.contentType"
8888
:message="item"
89-
class="max-w-70%"
89+
class="max-w-100%"
9090
/>
9191
</MessageItem>
9292
</div>

src/views/mall/promotion/kefu/components/tools/emoji.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const useEmoji = () => {
6666
)
6767
for (const path in pathList) {
6868
const imageModule: any = await pathList[path]()
69-
emojiPathList.value.push(imageModule.default)
69+
emojiPathList.value.push({path: path, src: imageModule.default})
7070
}
7171
}
7272

@@ -116,7 +116,8 @@ export const useEmoji = () => {
116116
function getEmojiFileByName(name: string) {
117117
for (const emoji of emojiList) {
118118
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
120121
}
121122
}
122123
return false

0 commit comments

Comments
 (0)