优化代码

This commit is contained in:
pengxiaolong
2025-08-21 14:57:27 +08:00
parent 9c82553013
commit d902254bf6
4 changed files with 145 additions and 57 deletions

View File

@@ -397,7 +397,6 @@ const chatList = ref({
//监听会话消息
function onConversationsUpdated(conversations) {
chatList.value = conversations;
console.log(chatList.value);
}
//获取会话列表
function getChatList() {
@@ -539,7 +538,6 @@ const handleAvatarSuccess = (
uploadFile
) => {
avatar.value = URL.createObjectURL(uploadFile.raw)
console.log(info.value);
editUserInfo({
id: info.value.id,
headerIcon: response.data.filename,
@@ -759,7 +757,6 @@ onMounted(() => {
});
getPromiseStorage('user').then(res => {
info.value = res;
console.log(res);
avatar.value = info.value.headerIcon;
getAnchorLibrary()
UserInfo();
@@ -821,6 +818,10 @@ onUnmounted(() => {
.Avatar-content{
width: 100%;
height: 250px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.Avatar-content-name{
width: 100%;