This commit is contained in:
2024-01-08 11:52:50 +08:00
parent bfab09fdd4
commit 5cc5f8b81b
65 changed files with 9011 additions and 1788 deletions

View File

@@ -1,4 +1,4 @@
const TokenKey = 'Global-Auth-Token'
const TokenKey = 'satoken'
const token = {

View File

@@ -42,12 +42,13 @@ const request = (options, noLoading) => {
}
Object.assign(_opts, options)
let _token = token.getToken()
console.log("token",_token)
let _baseUrl = config.baseUrl
let _tokenName = config.tokenName
if (_tokenName) {
_opts.header[_tokenName] = _token
} else {
_opts.header['Authorization'] = _token
_opts.header['satoken'] = _token
}
return new Promise((resolve, reject) => {