Commit df42b9cb authored by hewenhao's avatar hewenhao

feat: update

parent 93ee32f7
...@@ -64,13 +64,13 @@ async function request<T = unknown, P = unknown> (options: RequestOption<T, P>): ...@@ -64,13 +64,13 @@ async function request<T = unknown, P = unknown> (options: RequestOption<T, P>):
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
const token = getStorage(StorageKeys.token) // const token = getStorage(StorageKeys.token)
// const userId = getStorage(StorageKeys.userInfo)?.userId // const userId = getStorage(StorageKeys.userInfo)?.userId
if (token) { // if (token) {
header.Authorization = `Bearer ${token}` // header.Authorization = `Bearer ${token}`
} // }
// if (userId) { // if (userId) {
// header.STUDENTUSERID = `${userId}` // header.STUDENTUSERID = `${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