Explorar o código

优化极端情况下的阻塞

TonyKang %!s(int64=5) %!d(string=hai) anos
pai
achega
b7927d4f82
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/public/report/js/rpt_main.js

+ 1 - 0
app/public/report/js/rpt_main.js

@@ -614,6 +614,7 @@ let rptControlObj = {
             console.log('fonts are loading...');
             setTimeout(me.getPDFPre, 3000); //延时3秒
         } else {
+            $.bootstrapLoading.end(); //根据测试,需要先做一次清理,防止在极端情况下出现阻塞
             if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
                 me.getPDFEx();
             } else {