获取token修改
This commit is contained in:
@@ -67,6 +67,8 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
|
||||
// 自动携带token
|
||||
if (config.headers) {
|
||||
const token = adminInfo.getToken()
|
||||
console.log(token)
|
||||
console.log(token.length, 'token')
|
||||
if (token) {
|
||||
;(config.headers as anyObj).Authorization = token
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user