-
@@ -27,9 +24,7 @@
-
@@ -41,17 +36,20 @@
{{ userInfo.sex==0?"男":"女" }}
{{ userInfo.signature }}
-
+
- 发送消息
- 加为好友
- 删除好友
+ 发消息
+ 加为好友
+ 删除好友
-
+
@@ -106,7 +104,7 @@
})
})
},
- onAddFriend(user){
+ onAddFriend(user) {
this.$http({
url: "/friend/add",
method: "post",
@@ -116,12 +114,12 @@
}).then((data) => {
this.$message.success("添加成功,对方已成为您的好友");
let friend = {
- id:user.id,
+ id: user.id,
nickName: user.nickName,
headImage: user.headImage,
online: user.online
}
- this.$store.commit("addFriend",friend);
+ this.$store.commit("addFriend", friend);
})
},
onSendMessage(user) {
@@ -172,14 +170,14 @@
friendStore() {
return this.$store.state.friendStore;
},
- isFriend(){
- return this.friendStore.friends.find((f)=>f.id==this.userInfo.id);
+ isFriend() {
+ return this.friendStore.friends.find((f) => f.id == this.userInfo.id);
}
}
}
-
\ No newline at end of file
diff --git a/im-ui/src/view/Login.vue b/im-ui/src/view/Login.vue
index c64b6d4..5e14eda 100644
--- a/im-ui/src/view/Login.vue
+++ b/im-ui/src/view/Login.vue
@@ -30,6 +30,13 @@
uniapp移动端支持发送语音消息
+
+
最近更新(2024-04-27):
+
+ - uniapp端加载离线消息慢以及卡顿问题优化
+ - web端样式风格调整
+
+
如果本项目对您有帮助,请在gitee上帮忙点个star
@@ -178,7 +185,7 @@
.login-view {
width: 100%;
height: 100%;
- background: rgb(232, 242, 255);
+ background: #E8F2FF;
background-size: cover;
box-sizing: border-box;