byt-lingxiao-ai 0.3.27 → 0.3.28

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.
package/dist/index.umd.js CHANGED
@@ -70104,6 +70104,7 @@ function generateUuid() {
70104
70104
  // 记录耗时
70105
70105
  const duration = Date.now() - startTime;
70106
70106
  if (this.currentMessage) {
70107
+ this.messageLoading = false;
70107
70108
  this.currentMessage.time = (duration / 1000).toFixed(2);
70108
70109
  }
70109
70110
  console.log(`流处理完成,总耗时: ${duration}ms`);
@@ -70111,10 +70112,9 @@ function generateUuid() {
70111
70112
  } catch (error) {
70112
70113
  console.error('发送消息失败:', error);
70113
70114
  if (this.currentMessage) {
70115
+ this.messageLoading = false;
70114
70116
  this.currentMessage.content = '抱歉,发生了错误,请重试。';
70115
70117
  }
70116
- } finally {
70117
- this.messageLoading = false;
70118
70118
  }
70119
70119
  },
70120
70120
  /**