Compare commits

..

No commits in common. "af2c80f90265f7a159b85b9ef4fe3e1261f9be29" and "a0b28b19efd84f9e0c44c962fa1c27b343cbe82b" have entirely different histories.

2 changed files with 9 additions and 12 deletions

View File

@ -2,14 +2,12 @@ import { post, get, upload } from '@/utils/request'
//ES搜索-主页搜索什么都有、指定用户、指定群、群与用户概览
export const ServeSeachQueryAll = (data = {}) => {
return post('/api/v1/elasticsearch/query-all', data)
// return post('/api/v1/elasticsearch/query-all/v2', data)
return post('/api/v1/elasticsearch/query-all/v2', data)
}
// ES搜索用户数据
export const ServeQueryUser = (data) => {
return post('/api/v1/elasticsearch/query-user', data)
// return post('/api/v1/elasticsearch/query-user/v2', data)
return post('/api/v1/elasticsearch/query-user/v2', data)
}
// ES搜索群组数据

View File

@ -142,14 +142,13 @@ 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
// }
// })
// }
console.log(newValue)
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
}
})
}
},
{ deep: true, immediate: true }
)