send Api Ok

This commit is contained in:
saeid_01
2019-04-16 11:18:38 +04:30
parent 4c286bfbc0
commit 655d6bf800
29 changed files with 5100 additions and 3358 deletions
+5
View File
@@ -27,6 +27,11 @@ export default {
// TODO: Open Modal For Get Section
},
async verifyCodeSMS({ commit }, {verifyCode}) {
const result = await UserService.verifyCode(verifyCode);
// TODO: Open Modal For Get Section
},
logout({ commit }) {
UserService.logout()
commit('logoutSuccess')
+9
View File
@@ -0,0 +1,9 @@
export default {
getCurrentModal: (state) => {
return state.currentModal.name
},
getModalProperties: (state) => {
return state.currentModal.properties;
}
}
+12
View File
@@ -0,0 +1,12 @@
export default {
changeCurrentModal: (state, data) => {
state.currentModal.name = data.modal;
if (data.properties) {
state.currentModal.properties = data.properties;
}
},
closeModal: (state) => {
state.currentModal.name = '';
state.currentModal.properties = {};
}
}
+6
View File
@@ -0,0 +1,6 @@
export default {
currentModal: {
name: '',
properties: {}
},
}