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