From a17a67f53362fc9e913f7e74d037c557eb237ef4 Mon Sep 17 00:00:00 2001 From: lkddi Date: Tue, 21 Apr 2026 17:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=BB=BB=E5=91=BD=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E7=9A=84=E9=87=8D=E5=A4=8D=E5=BC=B9=E7=AA=97=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/chat/partials/user-actions.blade.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/views/chat/partials/user-actions.blade.php b/resources/views/chat/partials/user-actions.blade.php index 52fea56..915a388 100644 --- a/resources/views/chat/partials/user-actions.blade.php +++ b/resources/views/chat/partials/user-actions.blade.php @@ -315,13 +315,10 @@ }); const data = await res.json(); const ok = data.status === 'success'; - this.$alert( - data.message, - ok ? '任命成功 ✨' : '操作失败', - ok ? '#16a34a' : '#cc4444' - ); if (ok) { this.showUserModal = false; + } else { + this.$alert(data.message, '操作失败', '#cc4444'); } } catch (e) { this.$alert('网络异常,请稍后重试', '错误', '#cc4444');