zoukankan      html  css  js  c++  java
  • 饭侠三十六main.js

    /**
     * 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 VueAwesomeSwiper from 'vue-awesome-swiper'
    import 'swiper/dist/css/swiper.css'
    
    
    import  { ToastPlugin,WechatPlugin,LoadingPlugin,AlertPlugin } from 'vux'
    Vue.use(VueAwesomeSwiper)
    Vue.use(WechatPlugin)
    Vue.use(ToastPlugin)
    Vue.use(LoadingPlugin)
    Vue.use(AlertPlugin)
    let http = axios.create({
        timeout: 5000,
        responseType: 'json', // default
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
        },
        params:{
          openid:_global.openId
        },
        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)
    })
  • 相关阅读:
    国内好用的maven仓库,添加到本地nexus中
    02 介绍
    11 jsp脚本调用java代码
    12 jsp page 指令
    14 javaBean 组件
    13 jsp include
    01 Servlet & Jsp 技术概述
    pl/sql 实例精解 05
    pl/sql 实例精解 06
    pl/sql 实例精解 08
  • 原文地址:https://www.cnblogs.com/MR-cui/p/8918807.html
Copyright © 2011-2022 走看看