Skip to content

Commit

Permalink
feat:功能开发
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Dec 6, 2021
1 parent 294ca4d commit fc2ef06
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NODE_ENV=development
VUE_APP_PREVIEW=true
VUE_APP_API_BASE_URL=http://127.0.0.1:8080
VUE_APP_WEB_SOCKET_URL=ws://127.0.0.1:8080/wss/default.io
VUE_APP_API_BASE_URL=http://127.0.0.1:9503
VUE_APP_WEB_SOCKET_URL=ws://im-serve.local-admin.com/wss/default.io
VUE_APP_WEBSITE_NAME="Lumen IM"
2 changes: 1 addition & 1 deletion src/api/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ServeTopTalkList = data => {

// 清除聊天消息未读数服务接口
export const ServeClearTalkUnreadNum = data => {
return post('/api/v1/talk/update-unread-num', data)
return post('/api/v1/talk/unread/clear', data)
}

// 获取聊天记录服务接口
Expand Down
2 changes: 1 addition & 1 deletion src/api/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ServeSecedeGroup = data => {

// 修改群聊名片服务接口
export const ServeUpdateGroupCard = data => {
return post('/api/v1/group/set-group-card', data)
return post('/api/v1/group/members/remark', data)
}

// 获取用户可邀请加入群组的好友列表
Expand Down
4 changes: 2 additions & 2 deletions src/components/group/GroupPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</span>
<span v-else>
<input
v-model="editRemarkText"
v-model.trim="editRemarkText"
class="edit-input"
type="text"
v-focus
Expand Down Expand Up @@ -388,7 +388,7 @@ export default {
}
ServeUpdateGroupCard({
group_id: this.groupId,
group_id: parseInt(this.groupId),
visit_card: this.editRemarkText,
}).then(res => {
if (res.code == 200) {
Expand Down
8 changes: 4 additions & 4 deletions src/views/message/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@ export default {
})
// 清空消息未读数(后期改成WebSocket发送消息)
// ServeClearTalkUnreadNum({
// talk_type,
// receiver_id,
// })
ServeClearTalkUnreadNum({
talk_type:parseInt(talk_type),
receiver_id:parseInt(receiver_id),
})
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings/detail.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="box">
<div class="container">
<h4>设置个人信息</h4>
<h4>个人信息</h4>
<el-row>
<el-col :span="15">
<el-form ref="form" :model="form" :rules="rules">
Expand Down

0 comments on commit fc2ef06

Please sign in to comment.