feat: 完善职业图谱功能
This commit is contained in:
@@ -20,13 +20,15 @@ const request = config => {
|
||||
// 是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
config.header = config.header || {}
|
||||
// 从存储中获取微信登录的 token
|
||||
const token = getToken()
|
||||
if (token && !isToken) {
|
||||
config.header['Authorization'] = 'Bearer ' + token
|
||||
}
|
||||
// get请求映射params参数
|
||||
const baseType = config.baseUrlType
|
||||
// 职业图谱相关接口不需要Authorization
|
||||
const isZytpApi = baseType === 'zytp'
|
||||
// 从存储中获取微信登录的 token
|
||||
const token = getToken()
|
||||
if (token && !isToken && !isZytpApi) {
|
||||
config.header['Authorization'] = 'Bearer ' + token
|
||||
}
|
||||
let requestBaseUrl = baseUrl
|
||||
if (baseType === 'zytp' && zytpBaseUrl) {
|
||||
requestBaseUrl = zytpBaseUrl
|
||||
|
||||
Reference in New Issue
Block a user