Commit 68265d68 authored by 李苏's avatar 李苏 💬

请求改动

parent c2199d70
......@@ -23,7 +23,11 @@ const service = axios.create({
// request拦截器
service.interceptors.request.use(
config => {
config.headers.Gtoken = sessionStorage.getItem('Gtoken')|| store.state.user.token
let Gtoken= sessionStorage.getItem('Gtoken')|| store.state.user.token||''
if(!Gtoken){
Gtoken=''
}
config.headers.Gtoken =Gtoken
return config;
},
error => {
......
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