Commit 6226b7ff authored by 前端-许佳敏's avatar 前端-许佳敏

fix:无法登陆

parent 9d81f411
......@@ -70,7 +70,7 @@ const baseRequest = extend({
// 请求拦截器
baseRequest.interceptors.request.use((url: string, options: RequestOptionsInit): { url: string, options: RequestOptionsInit } => {
// 判断是否有权限
const { userId, memberId, token } = getAuth()
const { userId, memberId, token } = getAuth() || {}
const headers = {
...options.headers,
userId,
......
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