deming/main.js

19 lines
507 B
JavaScript
Raw Normal View History

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-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'
const app = new Vue({
...App
})
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()