Browse Source

Merge pull request 'feat: 两个请求就触发打包' (#1) from Zhenfei.Li/plugin-bi-pack-request:master into master

Reviewed-on: #1
master
18120169021 4 years ago
parent
commit
a36d8f8540
  1. 2
      build.xml
  2. 2
      src/main/resources/com/fr/plugin/pack/req.js

2
build.xml

@ -93,7 +93,7 @@
<antcall target="jar_classes">
<param name="jar_name" value="${plugin-jar}"/>
</antcall>
<delete dir="${classes}"/>
<!-- <delete dir="${classes}"/>-->
</target>
<target name="jar" depends="super_jar">

2
src/main/resources/com/fr/plugin/pack/req.js

@ -11,7 +11,7 @@
// 防抖机制,0.3s无新的data请求,才打包向后端发送。
var requestFunc = BI.debounce(function (config) {
if (count < 6) {
if (count < 2) {
// 发送请求时小于6则不打包,还跟之前的一样发
BI.each(handlers, function (wId, handler) {
handler.next(config);

Loading…
Cancel
Save