码迷,mamicode.com
首页 > Web开发 > 详细

tuition-main.js

时间:2018-02-27 16:03:03      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:ios   gpo   icon   bsp   for   url   type   har   str   

/**
 * Created by wensonsmith on 2017/12/5.
 */

import Vue from ‘vue‘
import axios from ‘axios‘
import Qs from ‘qs‘

import router from ‘./src/router‘
import store from ‘./src/store‘

import App from ‘./app.vue‘
import Icon from ‘vue-svg-icon/Icon.vue‘

import  { ToastPlugin,LoadingPlugin } from ‘vux‘
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
let http = axios.create({
    timeout: 5000,
    responseType: ‘json‘, // default
    headers: {
        ‘Content-Type‘: ‘application/x-www-form-urlencoded;charset=UTF-8‘
    },
    transformRequest: [(data) => {
        return Qs.stringify(data)
    }],
    withCredentials: false,
});

Vue.component(‘icon‘, Icon)
Vue.prototype.$http = http

new Vue({
    el: ‘#app‘,
    router,
    store,
    render: h => h(App)
})

 

tuition-main.js

标签:ios   gpo   icon   bsp   for   url   type   har   str   

原文地址:https://www.cnblogs.com/MR-cui/p/8478980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!