diff --git a/ui/src/views/system-chat-user/chat-user/index.vue b/ui/src/views/system-chat-user/chat-user/index.vue index 1c3337bb0..ae33246c7 100644 --- a/ui/src/views/system-chat-user/chat-user/index.vue +++ b/ui/src/views/system-chat-user/chat-user/index.vue @@ -69,6 +69,7 @@ > + + + + + ({ username: '', nick_name: '', source: '', + is_active: null, }) const search_type_change = () => { - search_form.value = {username: '', nick_name: '', source: ''} + search_form.value = {username: '', nick_name: '', source: '', is_active: null} } const loading = ref(false) @@ -366,9 +378,9 @@ const userTableData = ref([]) function getList() { const params: any = {} - if (search_form.value[search_type.value as keyof typeof search_form.value]) { - params[search_type.value] = - search_form.value[search_type.value as keyof typeof search_form.value] + const searchValue = search_form.value[search_type.value as keyof typeof search_form.value] + if (searchValue !== undefined && searchValue !== null && searchValue !== '') { + params[search_type.value] = searchValue } return loadPermissionApi('chatUser') .getUserManage(paginationConfig, params, loading)