|
@@ -123,7 +123,11 @@ instance.interceptors.request.use(function (config) {
|
|
|
// 在发送请求之前处理
|
|
|
// 判断token在前台session中是否存在
|
|
|
config.headers.common['Authorization'] = localStorage.getItem('Authorization');
|
|
|
- showFullScreenLoading();
|
|
|
+ if (config.noLoading === true) { //如果noLoading为true,不加载loading画面
|
|
|
+ console.log("noLoading");
|
|
|
+ } else {
|
|
|
+ showFullScreenLoading();
|
|
|
+ }
|
|
|
return config;
|
|
|
}, function (error) {
|
|
|
// 对请求错误做处理
|