登录页-功能优化

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

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

Loading…
Cancel
Save