wewe
This commit is contained in:
parent
4f946d964d
commit
2e8651d7a1
@ -52,6 +52,7 @@ const props = defineProps({
|
||||
const centent = ref('')
|
||||
const emits = defineEmits(["update:modelValue", 'load', 'input', 'change'])
|
||||
const load = () => {
|
||||
return
|
||||
emits('load')
|
||||
}
|
||||
|
||||
|
||||
@ -61,11 +61,7 @@ const appInfoStore = appDetail()
|
||||
const route = useRoute()
|
||||
|
||||
// 好友列表数据
|
||||
const userList = ref([
|
||||
{ user_id: 'u1', user_name: '张三', user_avatar: '' },
|
||||
{ user_id: 'u2', user_name: '李四', user_avatar: '' },
|
||||
{ user_id: 'u3', user_name: '王五', user_avatar: '' },
|
||||
])
|
||||
const userList = ref([])
|
||||
|
||||
const activeUser = ref({})
|
||||
const messages = ref([])
|
||||
@ -711,14 +707,14 @@ const onEmojiSelect = (emoji) => {
|
||||
// 获取用户列表
|
||||
const params = reactive({
|
||||
page: 1,
|
||||
page_size: 20,
|
||||
page_size: 2000,
|
||||
app_id: route.query.app_id
|
||||
})
|
||||
|
||||
const getUsers = (append = false) => {
|
||||
getUserList(params).then((res) => {
|
||||
if (append) {
|
||||
userList.value = userList.value.concat(res.list || [])
|
||||
userList.value = res.list // userList.value.concat(res.list || [])
|
||||
} else {
|
||||
userList.value = res.list || []
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user