Commit 8852d477 authored by shangbj's avatar shangbj

增加axios

parent bb25858a
import * as axios from 'axios'
import Vue from 'vue'
let options = {}
// The server-side needs a full url to works
if (process.server) {
options.baseURL = `http://${process.env.HOST || 'localhost'}:${process.env.PORT || 3000}`
}
export default () => {
Vue.use(axios.create(options))
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment