the following figure is the interface document:
and I set up to bring token to every request
axios.interceptors.request.use(config => {
if (common.getCookie("token")) {
console.log(common.getCookie("token")); //
config.headers.Authorization = common.getCookie("token");
}
return config;
},error=>{
return Promise.reject(err);
})
at first I thought it was a cross-domain problem, but the back end said it had already dealt with it. So we have been stuck asking for help on this issue.