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.

36 lines
865 B

3 years ago
import App from './App'
import Vue from 'vue'
import store from '@/store';
2 years ago
import uView from 'uview-ui'
Vue.use(uView)
3 years ago
// 引入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)
2 years ago
import moment from 'moment';
Vue.prototype.$moment = moment;
Vue.prototype.$onLaunched = new Promise((resolve) => {
Vue.prototype.$isResolve = resolve
})
3 years ago
app.$mount()