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.
@@ -1173,7 +1173,7 @@ const CustomerService = (props)=>{
1173
1173
  console.log('返回中', msg);
1174
1174
  content = content + msg.message;
1175
1175
  // isPosition.current = true;
1176
- clearTimeout(renderAiAnswerTimer.current);
1176
+ // clearTimeout(renderAiAnswerTimer.current)
1177
1177
  renderAiAnswerTimer.current = setTimeout(()=>{
1178
1178
  if (!finishedRef.current) {
1179
1179
  renderAiAnswer(msg, id, type);
@@ -2653,12 +2653,12 @@ const CustomerService = (props)=>{
2653
2653
  }
2654
2654
  //1、是否显示停止生成按钮 finished 是否生产完成
2655
2655
  let showStopBtn = false;
2656
- if (!finished && item.sender == "AI" && item.extraInfo == null) {
2656
+ if (!finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
2657
2657
  showStopBtn = true;
2658
2658
  }
2659
2659
  //2、是否展示重新生成按钮
2660
2660
  let regenerationBtn = false;
2661
- if (finished && item.sender == "AI" && item.extraInfo == null) {
2661
+ if (finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
2662
2662
  regenerationBtn = true;
2663
2663
  }
2664
2664
  //3、是否显示召唤老师回答按钮
@@ -1264,7 +1264,7 @@ var CustomerService = function(props) {
1264
1264
  console.log("返回中", msg);
1265
1265
  content = content + msg.message;
1266
1266
  // isPosition.current = true;
1267
- clearTimeout(renderAiAnswerTimer.current);
1267
+ // clearTimeout(renderAiAnswerTimer.current)
1268
1268
  renderAiAnswerTimer.current = setTimeout(function() {
1269
1269
  if (!finishedRef.current) {
1270
1270
  renderAiAnswer(msg, id, type);
@@ -2755,12 +2755,12 @@ var CustomerService = function(props) {
2755
2755
  }
2756
2756
  //1、是否显示停止生成按钮 finished 是否生产完成
2757
2757
  var showStopBtn = false;
2758
- if (!finished && item.sender == "AI" && item.extraInfo == null) {
2758
+ if (!finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
2759
2759
  showStopBtn = true;
2760
2760
  }
2761
2761
  //2、是否展示重新生成按钮
2762
2762
  var regenerationBtn = false;
2763
- if (finished && item.sender == "AI" && item.extraInfo == null) {
2763
+ if (finishedRef.current && item.sender == "AI" && item.extraInfo == null) {
2764
2764
  regenerationBtn = true;
2765
2765
  }
2766
2766
  //3、是否显示召唤老师回答按钮
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.10.22",
3
+ "version": "0.10.23",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {