|
@@ -22,7 +22,7 @@ axios.interceptors.request.use(config => {
|
|
axios.interceptors.response.use(response => {
|
|
axios.interceptors.response.use(response => {
|
|
console.log(response, 'res')
|
|
console.log(response, 'res')
|
|
if (response.config.url.indexOf('/salesLeads') !== -1) {
|
|
if (response.config.url.indexOf('/salesLeads') !== -1) {
|
|
- response.data.status = response.data.data
|
|
|
|
|
|
+ response.data.status = true
|
|
response.data.message = response.data.error_msg
|
|
response.data.message = response.data.error_msg
|
|
}
|
|
}
|
|
if (response.data.status) {
|
|
if (response.data.status) {
|