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