bhd-components 0.10.22 → 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.
@@ -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);
@@ -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、是否显示召唤老师回答按钮