You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
import App from './App'
|
|
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
import store from '@/store';
|
|
|
|
|
|
import uView from 'uview-ui'
|
|
|
|
|
|
Vue.use(uView)
|
|
|
|
|
|
|
|
|
|
|
|
// 引入uView提供的对vuex的简写法文件
|
|
|
|
|
|
let vuexStore = require('@/store/$u.mixin.js');
|
|
|
|
|
|
Vue.mixin(vuexStore);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
App.mpType = 'app'
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
|
|
store,
|
|
|
|
|
|
...App
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
import {base} from '@/common/util.js'
|
|
|
|
|
|
Vue.prototype.base = base;
|
|
|
|
|
|
// http拦截器,此为需要base的内容
|
|
|
|
|
|
import httpInterceptor from '@/common/http.interceptor.js'
|
|
|
|
|
|
// 这里需要写在最后,是为了等Vue创建对象完成,引入"app"对象(也即页面的"this"实例)
|
|
|
|
|
|
Vue.use(httpInterceptor, app)
|
|
|
|
|
|
|
|
|
|
|
|
// http接口API集中管理引入部分
|
|
|
|
|
|
import httpApi from '@/common/http.api.js'
|
|
|
|
|
|
Vue.use(httpApi, app)
|
|
|
|
|
|
|
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
Vue.prototype.$moment = moment;
|
|
|
|
|
|
|
|
|
|
|
|
app.$mount()
|