This commit is contained in:
nasir@endelospay.com
2024-06-06 05:16:17 +05:00
parent e47a9eed61
commit 409bae9df4
4 changed files with 30 additions and 169 deletions

View File

@@ -636,12 +636,13 @@ export default createStore({
async profileUpdate({ commit }, payload) {
commit('setLoading', true)
await axios.post(PROFILE_UPDATE_API, {
name: payload.first_name,
first_name: payload.name,
last_name:payload.last_name,
phone: payload.phone,
phone_no: payload.phone_no,
image:payload.image
}, {
headers: {
'Content-Type': 'multipart/form-data',
'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
}
}) .then(response => {