修复已知问题
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
TUIFriendService,
|
||||
TUIGroupService
|
||||
} from '@tencentcloud/chat-uikit-engine-lite'
|
||||
import { useAuthUser } from '../../composables/useAuthUser'
|
||||
|
||||
const { tencentUserSig } = useAuthUser()
|
||||
const { showLoading, hideLoading } = useUI()
|
||||
const loading = ref(false)
|
||||
const searchValue = ref('')
|
||||
@@ -97,7 +99,10 @@
|
||||
}
|
||||
|
||||
const onAdd = item => {
|
||||
navigateTo('/pages/adduser/details', { id: item.userID })
|
||||
navigateTo('/pages/adduser/details', {
|
||||
id: item.userID,
|
||||
type: item.userID == tencentUserSig.value.userId ? '99' : ''
|
||||
})
|
||||
}
|
||||
|
||||
const onDetails = (item, state) => {
|
||||
@@ -155,8 +160,10 @@
|
||||
<text>{{ item.nick || '未知名称' }}</text>
|
||||
<text>{{ item.userID }}</text>
|
||||
</view>
|
||||
<text v-if="isFriend" class="tag">已添加</text>
|
||||
<button v-else @click.stop="onAdd(item)">添加</button>
|
||||
<view v-if="item.userID !== tencentUserSig.userId">
|
||||
<text v-if="isFriend" class="tag">已添加</text>
|
||||
<button v-else @click.stop="onAdd(item)">添加</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 群列表 -->
|
||||
@@ -180,7 +187,8 @@
|
||||
<text>{{ item.name || '未知名称' }}</text>
|
||||
<text>{{ item.groupID }}</text>
|
||||
</view>
|
||||
<text class="tag-but">群聊</text>
|
||||
<!-- <text class="tag-but">群聊</text> -->
|
||||
<button style="background: #828bff">群聊</button>
|
||||
<!-- <text v-if="isFriend" class="tag">已添加</text>
|
||||
<button v-else @click.stop="onAdd(item)">添加</button> -->
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user