bhd-components 0.10.21 → 0.10.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3018,7 +3018,7 @@ var HistoryFun = function(props) {
3018
3018
  number = index;
3019
3019
  }
3020
3020
  });
3021
- var pageNumber = findPageNumber(30, Math.ceil(total / 30), number);
3021
+ var pageNumber = findPageNumber(10, Math.ceil(total / 10), number);
3022
3022
  if (number == 0) {
3023
3023
  pageNumber = 1;
3024
3024
  }
@@ -9359,7 +9359,7 @@ var CustomerService = function(props) {
9359
9359
  console.log("返回中", msg);
9360
9360
  content = content + msg.message;
9361
9361
  // isPosition.current = true;
9362
- clearTimeout(renderAiAnswerTimer.current);
9362
+ // clearTimeout(renderAiAnswerTimer.current)
9363
9363
  renderAiAnswerTimer.current = setTimeout(function() {
9364
9364
  if (!finishedRef.current) {
9365
9365
  renderAiAnswer(msg, id, type);
@@ -9537,7 +9537,7 @@ var CustomerService = function(props) {
9537
9537
  params: {
9538
9538
  roomId: rid,
9539
9539
  page: page,
9540
- maxPageSize: 30,
9540
+ maxPageSize: 10,
9541
9541
  direction: "desc"
9542
9542
  }
9543
9543
  }).then(function(res) {
@@ -9546,7 +9546,7 @@ var CustomerService = function(props) {
9546
9546
  if (res.data.messages.length > 0) {
9547
9547
  clearTimeout(listTimer.current);
9548
9548
  var total = res.data.total;
9549
- var maxPageSize = 30;
9549
+ var maxPageSize = 10;
9550
9550
  var dataList = res.data.messages.reverse();
9551
9551
  //历史记录点击进来的,多加载一页,防止定位不准
9552
9552
  if (flag == 1 && page > 1) {
@@ -9652,7 +9652,7 @@ var CustomerService = function(props) {
9652
9652
  params: {
9653
9653
  roomId: rid,
9654
9654
  page: 1,
9655
- maxPageSize: totalNumber == 0 ? 30 : totalNumber,
9655
+ maxPageSize: totalNumber == 0 ? 10 : totalNumber,
9656
9656
  direction: "desc"
9657
9657
  }
9658
9658
  }).then(function(res) {
@@ -10848,12 +10848,12 @@ var CustomerService = function(props) {
10848
10848
  }
10849
10849
  //1、是否显示停止生成按钮 finished 是否生产完成
10850
10850
  var showStopBtn = false;
10851
- if (!finished && item.sender == "AI" && item.extraInfo == null) {
10851
+ if (!finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
10852
10852
  showStopBtn = true;
10853
10853
  }
10854
10854
  //2、是否展示重新生成按钮
10855
10855
  var regenerationBtn = false;
10856
- if (finished && item.sender == "AI" && item.extraInfo == null) {
10856
+ if (finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
10857
10857
  regenerationBtn = true;
10858
10858
  }
10859
10859
  //3、是否显示召唤老师回答按钮