登录页-功能优化

main
ysn 4 days ago
parent 1f6fff708b
commit 8b56cfe867
  1. 9
      src/views/message/components/MessageDisplay.vue
  2. 4
      src/views/system/user/profile/userAvatar.vue

@ -108,8 +108,7 @@
:size="36" :size="36"
:src=" :src="
msg.is_self msg.is_self
? $store.state.user.netConfig.MINIO_ENDPOINT_HTTPS + ? $store.state.user.userInfo.avatar
$store.state.user.userInfo.avatar
: currentChat.scene === ContactsScene.GROUP : currentChat.scene === ContactsScene.GROUP
? $store.state.user.netConfig.MINIO_ENDPOINT_HTTPS + ? $store.state.user.netConfig.MINIO_ENDPOINT_HTTPS +
msg.avatar msg.avatar
@ -663,18 +662,18 @@ export default {
formatTextContent(content) { formatTextContent(content) {
if (!content) return ""; if (!content) return "";
// content content // content content
let text = content; let text = content;
if (typeof content === "object") { if (typeof content === "object") {
text = content.content || content.payload || JSON.stringify(content); text = content.content || content.payload || JSON.stringify(content);
} }
// text // text
if (typeof text !== "string") { if (typeof text !== "string") {
text = String(text); text = String(text);
} }
// HTML // HTML
text = text text = text
.replace(/&/g, "&") .replace(/&/g, "&")

@ -26,9 +26,7 @@ export default {
data() { data() {
return { return {
title: "修改头像", title: "修改头像",
optionsImg: optionsImg: store.getters.userInfo.avatar,
store.getters.config.MINIO_ENDPOINT_HTTPS +
store.getters.userInfo.avatar,
// 500KB // 500KB
MAX_FILE_SIZE: 500 * 1024, MAX_FILE_SIZE: 500 * 1024,
}; };

Loading…
Cancel
Save