mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Add dispatch in ftbot (merge error)
This commit is contained in:
parent
dd5ccbc91a
commit
aed8dd7bca
|
@ -71,7 +71,7 @@ export default {
|
||||||
.then((result) => commit('updateProfit', result.data))
|
.then((result) => commit('updateProfit', result.data))
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
},
|
},
|
||||||
getState({ commit, getters }) {
|
getState({ commit, getters, dispatch }) {
|
||||||
return axios.get(`${apiBase}/show_config`, {
|
return axios.get(`${apiBase}/show_config`, {
|
||||||
...getters.apiAuth
|
...getters.apiAuth
|
||||||
})
|
})
|
||||||
|
@ -85,6 +85,7 @@ export default {
|
||||||
}
|
}
|
||||||
console.log("Dispatching refresh_token...")
|
console.log("Dispatching refresh_token...")
|
||||||
dispatch('user/refresh_token', null, { root: true })
|
dispatch('user/refresh_token', null, { root: true })
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// Post methods
|
// Post methods
|
||||||
|
|
Loading…
Reference in New Issue
Block a user