fix:前端端口修改

This commit is contained in:
zhangzq
2025-06-25 10:37:30 +08:00
parent 30cc7f94fb
commit a39ac4e6f3
7 changed files with 12 additions and 38 deletions

View File

@@ -21,6 +21,7 @@ service.interceptors.request.use(
config.headers['Authorization'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
}
config.headers['Content-Type'] = 'application/json'
config.headers['Accept-Language'] = window.localStorage.getItem('lang')
return config
},
error => {