File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -235,16 +235,17 @@ const updateGeneralInfo = async (event) => {
235235 method: ' PATCH' ,
236236 body: JSON .stringify (bodyData),
237237 onResponse ({ response }) {
238- state .loading = false
239238 if (response ._data ) {
240239 state .error = false
241240 state .success = true
241+ state .loading = false
242242 }
243243 emit (' updateMember' )
244244 },
245245 onResponseError ({ response }) {
246- state .error = true
247- state .success = false
246+ state .error = false
247+ state .success = true
248+ state .loading = false
248249 console .log (' something went wrong' , response ._data .message )
249250 },
250251 })
Original file line number Diff line number Diff line change @@ -117,19 +117,17 @@ const updateMemberDetailsInfo = async (event) => {
117117 method: ' PATCH' ,
118118 body: JSON .stringify (bodyData),
119119 onResponse ({ response }) {
120- state .loading = false
121120 if (response .ok ) {
122- console .log (response ._data )
123- state .success = true
124121 state .error = false
125-
126- console . log ( state .success )
122+ state . success = true
123+ state .loading = false
127124 }
128125 emit (' updateMember' )
129126 },
130127 onResponseError ({ response }) {
131128 state .error = true
132129 state .success = false
130+ state .loading = false
133131 console .log (' something went wrong' , response ._data .message )
134132 },
135133 })
You can’t perform that action at this time.
0 commit comments