Make a send success system

This commit is contained in:
吳元皓 2025-06-16 10:18:09 +08:00
parent 5445a3d1c0
commit da524c9e68

View File

@ -153,6 +153,7 @@ const submitChangeAction = async (action: string) => {
console.error("Error updating user data:", response.error);
return;
}
sendSuccessSystem();
await validateUserInfo();
} catch (error) {
console.error("Failed to submit change:", error);
@ -189,6 +190,7 @@ const submitUserPassword = async () => {
success.value = true;
console.log(res);
userAccount.value = "";
sendSuccessSystem();
await validateUserInfo();
} else {
error.value = true;