From 5bd1665b45fcb48a3c0ce9218c67ee814157fd71 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 20 Dec 2019 00:31:28 +0100 Subject: [PATCH] the one that was lost --- src/store/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 315480f..081b151 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -11,6 +11,11 @@ const axios = AxiosBootstrap.create({ auth: config.service.auth }); +axios.interceptors.response.use(response => response, error => { + console.error(error); // todo: toast error + return Promise.reject(error); +}); + const store = new Vuex.Store({ state: { events: [],