去除任命成功的重复弹窗提示

This commit is contained in:
2026-04-21 17:16:18 +08:00
parent fed51dda18
commit a17a67f533
@@ -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');