orderiom-api-package 0.4.101 → 0.4.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/common.js +3 -3
- package/src/modules/auth.js +2 -2
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -223,13 +223,13 @@ export const defineInterceptors = ({$store}) => {
|
|
|
223
223
|
if(!isFetchingToken) getAuthToken($store, hadPrivateToken);
|
|
224
224
|
})
|
|
225
225
|
}, error => {
|
|
226
|
-
$store.dispatch('auth/
|
|
226
|
+
$store.dispatch('auth/finishRequesting');
|
|
227
227
|
return Promise.reject(error);
|
|
228
228
|
});
|
|
229
229
|
|
|
230
230
|
axios.interceptors.response.use(
|
|
231
231
|
res => {
|
|
232
|
-
$store.dispatch('auth/
|
|
232
|
+
$store.dispatch('auth/finishRequesting');
|
|
233
233
|
return {
|
|
234
234
|
type: 'success',
|
|
235
235
|
msg: '',
|
|
@@ -238,7 +238,7 @@ export const defineInterceptors = ({$store}) => {
|
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
error => {
|
|
241
|
-
$store.dispatch('auth/
|
|
241
|
+
$store.dispatch('auth/finishRequesting');
|
|
242
242
|
if (
|
|
243
243
|
error.response &&
|
|
244
244
|
error.response.data &&
|
package/src/modules/auth.js
CHANGED
|
@@ -55,10 +55,10 @@ const actions = {
|
|
|
55
55
|
console.warn('auth/auth action is deprecated. No need to call');
|
|
56
56
|
},
|
|
57
57
|
startRequesting({commit}){
|
|
58
|
-
commit('
|
|
58
|
+
commit('setIsRequesting', true)
|
|
59
59
|
},
|
|
60
60
|
finishRequesting({commit}){
|
|
61
|
-
commit('
|
|
61
|
+
commit('setIsRequesting', false)
|
|
62
62
|
},
|
|
63
63
|
login({commit, dispatch}, authData) {
|
|
64
64
|
var data = {...authData};
|