去除任命成功的重复弹窗提示
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user