2020-05-29 03:13:55 +00:00
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App'
|
2020-08-05 02:47:08 +00:00
|
|
|
|
import IMService from './static/imservice.js'
|
2020-06-02 03:34:09 +00:00
|
|
|
|
import uView from "uview-ui";
|
2020-05-29 03:13:55 +00:00
|
|
|
|
Vue.config.productionTip = false
|
2020-06-02 03:34:09 +00:00
|
|
|
|
Vue.use(uView);
|
2020-05-29 03:13:55 +00:00
|
|
|
|
App.mpType = 'app'
|
2020-08-05 02:47:08 +00:00
|
|
|
|
Vue.prototype.imService = new IMService();
|
|
|
|
|
Vue.prototype.a = 1;
|
2020-07-15 09:38:41 +00:00
|
|
|
|
import store from '@/common/store/index.js'
|
|
|
|
|
|
|
|
|
|
Vue.prototype.$store = store;
|
2020-07-15 08:21:43 +00:00
|
|
|
|
|
2020-05-29 03:13:55 +00:00
|
|
|
|
const app = new Vue({
|
2020-07-15 08:21:43 +00:00
|
|
|
|
...App,
|
2020-07-15 09:38:41 +00:00
|
|
|
|
store
|
2020-05-29 03:13:55 +00:00
|
|
|
|
})
|
2020-06-15 02:00:14 +00:00
|
|
|
|
// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用
|
|
|
|
|
import httpInterceptor from '@/common/http.interceptor.js'
|
|
|
|
|
Vue.use(httpInterceptor, app)
|
|
|
|
|
|
|
|
|
|
// http接口API集中管理引入部分
|
|
|
|
|
import httpApi from '@/common/http.api.js'
|
|
|
|
|
Vue.use(httpApi, app)
|
2020-06-02 03:34:09 +00:00
|
|
|
|
app.$mount()
|