axios对接PHP后台提供的json数据没有成功是怎么回事?
main.js文件代码如下:
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'lib-flexible'
import './common/stylus/index.styl'
import Vant from 'vant';
import 'vant/lib/index.css';
import './common/js/rem'
import qs from 'qs'
import axios from 'axios'
Vue.use(Vant);
//import Http from './api/http'
Vue.config.productionTip = false
Vue.prototype.$axios = axios
//把http挂在到vue实例上
//Vue.prototype.$Http = Http
new Vue({
router,
render: h => h(App)
}).$mount('#app')
谁帮我看看是怎么回事?谢谢。