mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
rename init to initAPi
This commit is contained in:
parent
dd0589776c
commit
fe8ea0afdf
|
@ -3,9 +3,9 @@ import './plugins/bootstrap-vue';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import store from './store';
|
import store from './store';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import { init } from './shared/apiService';
|
import { initApi } from './shared/apiService';
|
||||||
|
|
||||||
init(store);
|
initApi(store);
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const api = axios.create({
|
||||||
* Initialize api so store is accessible.
|
* Initialize api so store is accessible.
|
||||||
* @param store Vuex store
|
* @param store Vuex store
|
||||||
*/
|
*/
|
||||||
export function init(store) {
|
export function initApi(store) {
|
||||||
api.interceptors.request.use(
|
api.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
const custconfig = config;
|
const custconfig = config;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user