鍍金池/ 問答/HTML/ router.beforeEach先執(zhí)行還是Vue.http.intercept

router.beforeEach先執(zhí)行還是Vue.http.interceptors(攔截器)先執(zhí)行,這兩者的區(qū)別在哪

router.beforeEach先執(zhí)行還是Vue.http.interceptors(攔截器)先執(zhí)行,這兩者的區(qū)別在哪

回答
編輯回答
使勁操

router.beforeEach 運(yùn)行在vue路由切換的時候
Vue.http.interceptors 運(yùn)行在你http請求的時候
兩個八桿子也打不著啊

2017年7月7日 17:05