Commit 5c098015 authored by mengqr's avatar mengqr
parents 3f22e4a1 dc6022f5
......@@ -20,7 +20,7 @@ service.interceptors.request.use(config => {
config.data = JSON.stringify(config.data); //数据转化,也可以使用qs转换
config.headers = {
'Content-Type':'application/json' ,//配置请求头
'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjYyMTk2MjQsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNTYxNDgyNH0.S-vd6o_eb5-IwSBIs39kRb-tI-2rRrMYlj3dTKgU_GqylRpv3GBVjeNzjSxXVnfRFp68OWTW8f_A085uTjP-Sw'
'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjYyOTc4ODksInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNTY5MzA4OX0.iSWtg05FvzN3vXx219-q-zcnAjZc63691GgNxZtC16LrsYqv7f01VY4L2pSDnfIzlwnXUAG5HBCnDMr3s4ED-Q'
}
//如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
//const token = getCookie('名称');//这里取token之前,你肯定需要先拿到token,存一下
......
......@@ -129,7 +129,7 @@ export default {
.oul {
display: flex;
justify-content: space-around;
margin-top: 20px;
margin-top: 10px;
border-bottom: 1px solid #d5d8db;
padding-bottom: 21px;
/* padding-left: 10px; */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment