axios和router    

axios.intercetor.request.use(funcation(req){

axios.headers.authorization  = sessionStrorage.getItem()

})

 

router.beforeEach((to, from, next) =>{})