2020-05-29 11:13:55 +08:00
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App'
|
2020-07-16 08:43:55 +08:00
|
|
|
|
|
2020-06-02 11:34:09 +08:00
|
|
|
|
import uView from "uview-ui";
|
2020-05-29 11:13:55 +08:00
|
|
|
|
Vue.config.productionTip = false
|
2020-06-02 11:34:09 +08:00
|
|
|
|
Vue.use(uView);
|
2020-05-29 11:13:55 +08:00
|
|
|
|
App.mpType = 'app'
|
|
|
|
|
|
2020-07-15 17:38:41 +08:00
|
|
|
|
import store from '@/common/store/index.js'
|
|
|
|
|
|
|
|
|
|
Vue.prototype.$store = store;
|
2020-07-15 16:21:43 +08:00
|
|
|
|
|
2020-05-29 11:13:55 +08:00
|
|
|
|
const app = new Vue({
|
2020-07-15 16:21:43 +08:00
|
|
|
|
...App,
|
2020-07-15 17:38:41 +08:00
|
|
|
|
store
|
2020-05-29 11:13:55 +08:00
|
|
|
|
})
|
2020-06-15 10:00:14 +08: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 11:34:09 +08:00
|
|
|
|
app.$mount()
|