|
@@ -6,25 +6,13 @@ const instance = axios.create({
|
|
|
withCredentials: process.env.VUE_APP_WITHCREDENTIALS,
|
|
|
timeout: process.env.VUE_APP_AJAX_TIMEOUT
|
|
|
})
|
|
|
+
|
|
|
instance.interceptors.request.use(
|
|
|
- (config) => {
|
|
|
- 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')
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ (config) => {debugger
|
|
|
// console.info(config.url, 'config.url')
|
|
|
- console.log(config, 'config.url')
|
|
|
-
|
|
|
+ if (ignoreUrl.indexOf(config.url) === -1) {
|
|
|
+ EventBus.$emit('showLoading')
|
|
|
+ }
|
|
|
return config
|
|
|
},
|
|
|
(error) => {
|