|
@@ -1,6 +1,7 @@
|
|
import { config } from './../../config'
|
|
import { config } from './../../config'
|
|
import axios from 'axios'
|
|
import axios from 'axios'
|
|
import { headerData } from './reqHeaders'
|
|
import { headerData } from './reqHeaders'
|
|
|
|
+import { Toast } from 'vant'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -31,7 +32,10 @@ $axios.interceptors.response.use(
|
|
(response) => {
|
|
(response) => {
|
|
// console.log(response, 78)
|
|
// console.log(response, 78)
|
|
if (response.data.isSuccess === 'T') {
|
|
if (response.data.isSuccess === 'T') {
|
|
|
|
+ // console.log("response.data=",response.data)
|
|
return response.data.body
|
|
return response.data.body
|
|
|
|
+ }else{
|
|
|
|
+ Toast(response.data.errorMsg || '系统异常')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
)
|