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

Reviewed-on: https://gitea-inner.fontree.cn/scout666/chat-pc/pulls/11
This commit is contained in:
yinkang 2025-07-02 09:02:03 +00:00
commit 1956bb05ef

View File

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