fixed config
This commit is contained in:
@ -1,21 +1,6 @@
|
||||
import axios from 'axios'
|
||||
//let config = require('../../siteconfig.json')
|
||||
//import config from '../config/dev.env'
|
||||
//import Vue from 'vue'
|
||||
|
||||
import config from '../config'
|
||||
|
||||
config.initConfig()
|
||||
let conf = config.get()
|
||||
/*
|
||||
conf.then(function (r) {
|
||||
// eslint-disable-next-line
|
||||
console.log(r)
|
||||
})*/
|
||||
config.configReady()
|
||||
// eslint-disable-next-line
|
||||
console.log(conf)
|
||||
let config = require('../../public/config.json')
|
||||
|
||||
export const HTTP = axios.create({
|
||||
baseURL: conf.VIKUNJA_API_BASE_URL
|
||||
baseURL: config.VIKUNJA_API_BASE_URL
|
||||
})
|
||||
|
Reference in New Issue
Block a user