Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getTauxLcl({commit,state},{typeId}){
- state.tauxLcl=[];
- this.state.loading=true;
- axios.get('https://apidev.courtizen.com/api/BankLcl/Taux/'+typeId+'/taux ',{headers: { 'X-Requested-With': 'XMLHttpRequest' ,'Authorization' : 'Bearer '+localStorage.getItem("token")}}
- ).then((response) => {
- response.data.data.forEach(function(item) {
- state.tauxLcl.push(item)
- })
- this.state.loading=false;
- })
- .catch((e) => {
- Vue.$notify('error filled', 'Erreur', 'Erreur est survenue lors de mise à jour', { duration: 3000, permanent: false });
- })
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement