!541 【功能修复】商城:发送商品显示不全问题和打包后客服聊天表情缺失问题

Merge pull request !541 from Lcp/pr
pull/543/head
芋道源码 2024-09-07 11:02:19 +00:00 committed by Gitee
commit d12c4dc258
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@
<OrderItem
v-if="KeFuMessageContentTypeEnum.ORDER === item.contentType"
:message="item"
class="max-w-70%"
class="max-w-100%"
/>
</MessageItem>
</div>

View File

@ -66,7 +66,7 @@ export const useEmoji = () => {
)
for (const path in pathList) {
const imageModule: any = await pathList[path]()
emojiPathList.value.push(imageModule.default)
emojiPathList.value.push({path: path, src: imageModule.default})
}
}
@ -116,7 +116,8 @@ export const useEmoji = () => {
function getEmojiFileByName(name: string) {
for (const emoji of emojiList) {
if (emoji.name === name) {
return emojiPathList.value.find((item: string) => item.indexOf(emoji.file) > -1)
const emojiPath = emojiPathList.value.find((item: {path:string,src:string}) => item.path.indexOf(emoji.file) > -1)
return emojiPath?emojiPath.src:undefined
}
}
return false