diff --git a/src/api/search.js b/src/api/search.js index 4addc0e..65e7c16 100644 --- a/src/api/search.js +++ b/src/api/search.js @@ -2,12 +2,14 @@ import { post, get, upload } from '@/utils/request' //ES搜索-主页搜索什么都有、指定用户、指定群、群与用户概览 export const ServeSeachQueryAll = (data = {}) => { - return post('/api/v1/elasticsearch/query-all/v2', data) + return post('/api/v1/elasticsearch/query-all', data) + // return post('/api/v1/elasticsearch/query-all/v2', data) } // ES搜索用户数据 export const ServeQueryUser = (data) => { - return post('/api/v1/elasticsearch/query-user/v2', data) + return post('/api/v1/elasticsearch/query-user', data) + // return post('/api/v1/elasticsearch/query-user/v2', data) } // ES搜索群组数据 diff --git a/src/views/message/inner/IndexContent.vue b/src/views/message/inner/IndexContent.vue index 4180522..fc9aa40 100644 --- a/src/views/message/inner/IndexContent.vue +++ b/src/views/message/inner/IndexContent.vue @@ -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 } )