路由 uview升级 api

This commit is contained in:
2020-07-16 10:02:57 +08:00
parent 6e727816ce
commit a2f522479b
6 changed files with 70 additions and 12 deletions

View File

@@ -11,4 +11,12 @@ App.mpType = 'app'
const app = new Vue({
...App
})
// 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)
app.$mount()