From 45abb60628683e67e39556c5de23658ab3917e79 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 09 八月 2024 17:47:47 +0800
Subject: [PATCH] 优化数采
---
static/js/worker.js | 3 ++-
static/js/worker0.js | 10 ++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/static/js/worker.js b/static/js/worker.js
index aec7253..696fd94 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -298,8 +298,9 @@
// console.log(5555,tableList)
}
// console.log('1234567789', tableList,getParam())
- console.log('1234567789', item)
+ // console.log('1234567789', item)
let getDataType0 = false
+ console.log('1234567789', item.i,getDataTypeId)
if(item.i==getDataTypeId){
getDataType0 = true
}
diff --git a/static/js/worker0.js b/static/js/worker0.js
index 370ec75..680a2a9 100644
--- a/static/js/worker0.js
+++ b/static/js/worker0.js
@@ -122,9 +122,11 @@
})
})
if(arrSpecial[numSpecial-1]){
- result = {
- getDataTypeId:arrSpecial[numSpecial-1],
- }
- self.postMessage(JSON.stringify(result))
+ setTimeout(()=>{
+ result = {
+ getDataTypeId:arrSpecial[numSpecial-1],
+ }
+ self.postMessage(JSON.stringify(result))
+ },0)
}
}
--
Gitblit v1.9.3