This commit is contained in:
2020-06-15 10:00:14 +08:00
parent ee16ae96e0
commit 71cd101d97
7 changed files with 114 additions and 0 deletions

View File

@@ -8,4 +8,11 @@ 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()