mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-30 15:19:32 +08:00
Fix: useless code
This commit is contained in:
parent
25394dc61a
commit
3532be602c
@ -23,16 +23,14 @@ const formRef = ref<FormInstance>();
|
||||
|
||||
const handleGenerateApiKey = async (enable: boolean) => {
|
||||
try {
|
||||
const res = await execute({
|
||||
await execute({
|
||||
data: {
|
||||
enable
|
||||
},
|
||||
forceRequest: true
|
||||
});
|
||||
if (res.value) {
|
||||
updateUserInfo();
|
||||
return message.success(t("更新成功"));
|
||||
}
|
||||
updateUserInfo();
|
||||
return message.success(t("更新成功"));
|
||||
} catch (error: any) {
|
||||
return message.error(error.message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user