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.

32 lines
770 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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
})
// http拦截器此为需要加入的内容
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()