|
@@ -35,15 +35,15 @@ request.interceptors.request.use(
|
|
|
initRequest = options.initRequest || false
|
|
|
const Authorization = getAuth() || ''
|
|
|
const authHeaders: any = {}
|
|
|
- console.log(/open/gi.test(url))
|
|
|
+ //console.log(/open/gi.test(url))
|
|
|
if (
|
|
|
Authorization &&
|
|
|
![
|
|
|
'/api-auth/usernameLogin',
|
|
|
'/api-auth/smsLogin',
|
|
|
'/api-auth/code/sendSms'
|
|
|
- ].includes(url) &&
|
|
|
- !/open/gi.test(url)
|
|
|
+ ].includes(url) /*&&
|
|
|
+ !/open/gi.test(url)*/
|
|
|
) {
|
|
|
authHeaders.Authorization = Authorization
|
|
|
}
|