From 75edf19266a8380dde20f12f0ae0f1f9f454f3e8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 18 Mar 2026 10:16:59 +0800 Subject: [PATCH] fix(User Management): After syncing all users in WeChat Work, delete the synced account; the data will no longer be displayed on the page. --- frontend/src/views/system/user/User.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 10f65c7a..d4b5b130 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -706,7 +706,7 @@ const platformType = ref([ const refresh = (res: any) => { showTips(res.successCount, res.errorCount, res.dataKey) if (res.successCount) { - search() + handleCurrentChange(1) } } @@ -876,7 +876,8 @@ const clearFilter = (params?: number) => { const searchCondition = (conditions: any) => { state.conditions = conditions fillFilterText() - search() + handleCurrentChange(1) + drawerMainClose() } const drawerMainOpen = async () => { @@ -957,7 +958,7 @@ const deleteBatchUser = () => { type: 'success', message: t('dashboard.delete_success'), }) - search() + handleCurrentChange(1) }) }) } @@ -975,7 +976,7 @@ const deleteHandler = (row: any) => { type: 'success', message: t('dashboard.delete_success'), }) - search() + handleCurrentChange(1) }) }) } @@ -1039,7 +1040,8 @@ const addTerm = () => { .add({ account, email, name, oid, status, oid_list, system_variables: formatVariableValues() }) .then(() => { onFormClose() - search() + handleCurrentChange(1) + ElMessage({ type: 'success', message: t('common.save_success'), @@ -1065,7 +1067,8 @@ const editTerm = () => { }) .then(() => { onFormClose() - search() + handleCurrentChange(1) + ElMessage({ type: 'success', message: t('common.save_success'), @@ -1193,7 +1196,8 @@ onMounted(() => { options.value = res || [] filterOption.value[2].option = [...options.value] }) - search() + handleCurrentChange(1) + loadDefaultPwd() }) const downErrorExcel = (dataKey: any) => {