Commit 7a1febe4 authored by yaya's avatar yaya

feat: 备注更新

parent eca4b3e3
......@@ -65,21 +65,19 @@ export default {
},
methods: {
handleBlur() {
if (this.chatUserInfo.user.remark !== this.preRemark) {
const params = {
user: this.chatUserInfo.user.id,
remark: this.chatUserInfo.user.remark
}
setChatUserRemark(params).then((response) => {
this.preRemark = this.chatUserInfo.user.remark
}).catch((response) => {
this.closeLoading()
this.$notify.error({
title: '失败',
message: response.data.errmsg || '请求失败'
})
})
const params = {
user: this.chatUserInfo.user.id,
remark: this.chatUserInfo.user.remark
}
setChatUserRemark(params).then((response) => {
this.preRemark = this.chatUserInfo.user.remark
}).catch((response) => {
this.closeLoading()
this.$notify.error({
title: '失败',
message: response.data.errmsg || '请求失败'
})
})
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment