fix: update money on order

This commit is contained in:
hiyu 2024-07-01 16:21:57 +07:00
parent 9be95aa741
commit 1ac1e6fcfc

View File

@ -155,6 +155,7 @@ const submit = () => {
amount.value = 0; amount.value = 0;
choices.value.forEach((e) => (e.active = 0)); choices.value.forEach((e) => (e.active = 0));
isShowConfirmOrder.value = false; isShowConfirmOrder.value = false;
userStore.updateUserInfo({ money: res.balance });
} else { } else {
showFailToast(res.message ?? "Lỗi bình chọn"); showFailToast(res.message ?? "Lỗi bình chọn");
} }