修复前端鉴权bug

This commit is contained in:
2022-09-21 15:36:56 +08:00
parent 6e11972ae2
commit 98deffce46
6 changed files with 51 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ const service = axios.create({
// request拦截器
service.interceptors.request.use(
config => {
debugger
// debugger
if (getToken()) {
config.headers['Authorization'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
}