v2.9update
This commit is contained in:
@@ -38,8 +38,12 @@
|
||||
});
|
||||
|
||||
if (res && res.success) {
|
||||
let msg = `管理员 ${res.data.username} 添加成功`;
|
||||
if (res.data.password) msg += `,密码: ${res.data.password}`;
|
||||
let msg;
|
||||
if (res.data.password) {
|
||||
msg = `管理员 ${res.data.username} 添加成功,密码: ${res.data.password}`;
|
||||
} else {
|
||||
msg = `管理员 ${res.data.username} 已重新激活(原密码不变)`;
|
||||
}
|
||||
showToast(msg);
|
||||
closeModal('addAdminModal');
|
||||
loadAdmins();
|
||||
|
||||
Reference in New Issue
Block a user