mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 15:11:06 +03:30
send Api Ok
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
getCurrentModal: (state) => {
|
||||
return state.currentModal.name
|
||||
},
|
||||
getModalProperties: (state) => {
|
||||
return state.currentModal.properties;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 = {};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export default {
|
||||
currentModal: {
|
||||
name: '',
|
||||
properties: {}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user