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.
39 lines
952 B
39 lines
952 B
import Vue from 'vue';
|
|
import App from './App';
|
|
import mixin from '@/common/mixin.js';
|
|
import * as API from '@/common/api.js';
|
|
import * as $shared from '@/common/shared.js';
|
|
import { uploadFile } from '@/common/uploadFile.js'
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
App.mpType = 'app';
|
|
// 每个页面都会进入mixin
|
|
Vue.mixin(mixin);
|
|
|
|
// 将API注入全局
|
|
Vue.prototype.API = API;
|
|
|
|
// 全局共享方法
|
|
Vue.prototype.$shared = $shared;
|
|
|
|
Vue.prototype.uploadFile = uploadFile
|
|
|
|
// 引入全局uView
|
|
import uView from 'uview-ui';
|
|
Vue.use(uView);
|
|
// 引入请求方法
|
|
import { $http } from '@/common/http.js';
|
|
Vue.prototype.$http = $http;
|
|
|
|
// 将无数据组件注入全局
|
|
import lfNocontent from '@/components/lf-nocontent/lf-nocontent.vue';
|
|
Vue.component('lf-nocontent', lfNocontent);
|
|
|
|
const app = new Vue({
|
|
...App
|
|
});
|
|
// 引入http拦截器
|
|
import httpInterceptor from '@/common/http.interceptor.js';
|
|
Vue.use(httpInterceptor, app);
|
|
app.$mount();
|