update
This commit is contained in:
@@ -131,15 +131,13 @@ const { authUser } = useAuth();
|
||||
const loading = ref(false)
|
||||
|
||||
const edit = async(formData) => {
|
||||
console.log('form :',formData);
|
||||
try {
|
||||
loading.value = true;
|
||||
await $fetch('/api/user/update', {
|
||||
method: 'PUT',
|
||||
body: formData
|
||||
})
|
||||
// toast.success("ویرایش اطلاعات شما باموفقیت انجام شد");
|
||||
location.reload()
|
||||
location.reload()
|
||||
} catch (error) {
|
||||
toast.error(error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user