|
@@ -9,10 +9,23 @@ const instance = axios.create({
|
|
|
|
|
|
instance.interceptors.request.use(
|
|
|
(config) => {
|
|
|
- // console.info(config.url, 'config.url')
|
|
|
- if (ignoreUrl.indexOf(config.url) === -1) {
|
|
|
- EventBus.$emit('showLoading')
|
|
|
+ if(config.params){
|
|
|
+ if(config.params.loadingstatus){
|
|
|
+ // EventBus.$emit('hideLoading')
|
|
|
+ }else{
|
|
|
+ if (ignoreUrl.indexOf(config.url) === -1) {
|
|
|
+ EventBus.$emit('showLoading')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (ignoreUrl.indexOf(config.url) === -1) {
|
|
|
+ EventBus.$emit('showLoading')
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ // console.info(config.url, 'config.url')
|
|
|
+ console.log(config, 'config.url')
|
|
|
+
|
|
|
return config
|
|
|
},
|
|
|
(error) => {
|