|
@@ -11,10 +11,10 @@ import { ElNotification } from 'element-plus'
|
|
|
request.interceptors.request.use(
|
|
|
(config) => {
|
|
|
const token = Cookie.get('indent-token')
|
|
|
- console.log(token, 'token')
|
|
|
+ // console.log(token, 'token')
|
|
|
if (token) config.headers.Authorization = `Bearer ${token}`
|
|
|
const crmID = Cookie.get('indent-crm-id')
|
|
|
- console.log(crmID, 'indent crm id')
|
|
|
+ // console.log(crmID, 'indent crm id')
|
|
|
if (crmID) {
|
|
|
if (config.url.includes('?')) {
|
|
|
config.url += `&crm_id=${crmID}`
|
|
@@ -23,12 +23,12 @@ request.interceptors.request.use(
|
|
|
}
|
|
|
}
|
|
|
const crmFullName = Cookie.get('indent-crm-fullname')
|
|
|
- console.log(crmFullName, 'indent crm fullname')
|
|
|
+ // console.log(crmFullName, 'indent crm fullname')
|
|
|
if (crmFullName) {
|
|
|
config.url += `&crm_full_name=${encodeURIComponent(crmFullName)}`
|
|
|
}
|
|
|
|
|
|
- console.log(config)
|
|
|
+ // console.log(config)
|
|
|
return config
|
|
|
},
|
|
|
(error) => {
|