Merge pull request '注释无关变量' (#12) from yink into main

Reviewed-on: https://gitea-inner.fontree.cn/scout666/chat-pc/pulls/12
This commit is contained in:
yinkang 2025-07-02 09:02:18 +00:00
commit 4ad08db846

View File

@ -142,13 +142,14 @@ watch(
() => talkParams,
(newValue, oldValue) => {
//
if (talkParams.type !== 2) {
ServeCheckFriend({ receiver_id: newValue.receiver_id, talk_type: 1 }).then((res) => {
if (res?.code === 200) {
isFriend.value = res.data.is_friend
}
})
}
// if (talkParams.type !== 2) {
// ServeCheckFriend({ receiver_id: newValue.receiver_id, talk_type: 1 }).then((res) => {
// if (res?.code === 200) {
// isFriend.value = res.data.is_friend
// }
// })
// }
console.log(newValue)
},
{ deep: true, immediate: true }
)