Jelajahi Sumber

bug fix: 31506 (省博沉浸-PC端)搜索框每输入一个关键字页面就会闪一下

任一存 2 tahun lalu
induk
melakukan
9262426b53
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      code/src/config/http.js

+ 4 - 4
code/src/config/http.js

@@ -13,7 +13,7 @@ axios.defaults.headers["X-Requested-with"] = "XMLHttpRequest";
 
 axios.interceptors.request.use(
   function (config) {
-    Loading.show();
+    // Loading.show();
 
     if (config.headers["Content-Type"] == 'multipart/form-data') {
       return config;
@@ -47,8 +47,8 @@ axios.interceptors.response.use(
   (response) => {
     let data = response.data;
     let code = Number(response.data.code);
-
-    Loading.hide();
+    
+    // Loading.hide();
     switch (code) {
       case -1:
         break;
@@ -68,7 +68,7 @@ axios.interceptors.response.use(
     return data;
   },
   (error) => {
-    Loading.hide();
+    // Loading.hide();
     if (error.response) {
 
     }