Browse Source

请稍候...删除

王通 2 years ago
parent
commit
64733062a2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/utils/request.js

+ 3 - 3
src/utils/request.js

@@ -25,9 +25,9 @@ const service = axios.create({
 
 // request拦截器
 service.interceptors.request.use(config => {
-  if(config.headers.loading == undefined){
-    downloadLoadingInstance = Loading.service({ text: "请稍候...", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
-  }
+  // if(config.headers.loading == undefined){
+  //   downloadLoadingInstance = Loading.service({ text: "请稍候...", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
+  // }
   // 是否需要设置 token
   const isToken = (config.headers || {}).isToken === false
   // 是否需要防止数据重复提交