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

pull/543/head
YunaiV 2024-09-07 19:04:07 +08:00
parent d12c4dc258
commit ef56489d46
2 changed files with 7 additions and 5 deletions

View File

@ -423,7 +423,7 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
// //
.kefu-message { .kefu-message {
color: #A9A9A9; color: #a9a9a9;
border-radius: 5px; border-radius: 5px;
box-shadow: 3px 3px 5px rgba(220, 220, 220, 0.1); box-shadow: 3px 3px 5px rgba(220, 220, 220, 0.1);
padding: 5px 10px; padding: 5px 10px;

View File

@ -116,7 +116,9 @@ export const useEmoji = () => {
function getEmojiFileByName(name: string) { function getEmojiFileByName(name: string) {
for (const emoji of emojiList) { for (const emoji of emojiList) {
if (emoji.name === name) { if (emoji.name === name) {
const emojiPath = emojiPathList.value.find((item: {path:string,src:string}) => item.path.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 emojiPath ? emojiPath.src : undefined
} }
} }