Ver código fonte

更新内容

moshaorui 2 meses atrás
pai
commit
3c9066613f
1 arquivos alterados com 12 adições e 12 exclusões
  1. 12 12
      public/static/js/script.js

+ 12 - 12
public/static/js/script.js

@@ -257,18 +257,18 @@ $(document).ready(function() {
     var checkDownloadStatus = function() {
         var intervalId = setInterval(function() {
             console.log('checkDownloadStatus ....');
-            $.ajax({
-                url: '/download-status',
-                method: 'GET',
-                dataType: 'json',
-                success: function(response) {
-                    console.log(response);
-                    if (response.status == 0 || response.status == 2) {
-                        clearInterval(intervalId);
-                        layer.close(loadIndex); // 关闭加载层
-                    }
-                }
-            });
+            // $.ajax({
+            //     url: '/download-status',
+            //     method: 'GET',
+            //     dataType: 'json',
+            //     success: function(response) {
+            //         console.log(response);
+            //         if (response.status == 0 || response.status == 2) {
+            //             clearInterval(intervalId);
+            //             layer.close(loadIndex); // 关闭加载层
+            //         }
+            //     }
+            // });
         }, 1000); // 每秒请求一次
     }