Browse Source

请稍候...删除

王通 2 năm trước cách đây
mục cha
commit
4d8f810f35
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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
   // 是否需要防止数据重复提交