From 015af18d3c07ed21a558ea8ae04ac86515cd064a Mon Sep 17 00:00:00 2001 From: v6ole Date: Sat, 27 Jun 2026 12:02:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=BF=AE=E5=A4=8D=20=E2=80=94=20footer=20?= =?UTF-8?q?=E7=AE=80=E5=8C=96=20+=20=E5=88=A0=E9=99=A4=E5=90=8E=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - footer 用 span 替代 flex div (避免 element-plus 兼容问题) - 删除成功后自动关闭弹窗 Co-Authored-By: Claude --- frontend/src/views/desktop/UserManage.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/desktop/UserManage.vue b/frontend/src/views/desktop/UserManage.vue index 1998f27..d94dd0b 100644 --- a/frontend/src/views/desktop/UserManage.vue +++ b/frontend/src/views/desktop/UserManage.vue @@ -65,6 +65,7 @@ async function handleDelete(row: any) { await ElMessageBox.confirm(`确定删除「${row.name}」?此操作不可恢复。`, '确认删除', { type: 'warning', confirmButtonText: '删除', cancelButtonText: '取消' }) await api.delete(`/users/${row.id}`) ElMessage.success(`已删除「${row.name}」`) + editDialogVisible.value = false await loadUsers() } catch (e: any) { if (e !== 'cancel') ElMessage.error('删除失败: ' + (e.response?.data?.detail || e.message)) } } @@ -127,13 +128,11 @@ async function handleDelete(row: any) {