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.
|
@@ -92,6 +92,7 @@ export default {
|
|
|
92
92
|
// 记录耗时
|
|
93
93
|
const duration = Date.now() - startTime;
|
|
94
94
|
if (this.currentMessage) {
|
|
95
|
+
this.messageLoading = false;
|
|
95
96
|
this.currentMessage.time = (duration / 1000).toFixed(2);
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -101,10 +102,9 @@ export default {
|
|
|
101
102
|
} catch (error) {
|
|
102
103
|
console.error('发送消息失败:', error);
|
|
103
104
|
if (this.currentMessage) {
|
|
105
|
+
this.messageLoading = false;
|
|
104
106
|
this.currentMessage.content = '抱歉,发生了错误,请重试。';
|
|
105
107
|
}
|
|
106
|
-
} finally {
|
|
107
|
-
this.messageLoading = false;
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
|
package/dist/index.common.js
CHANGED
|
@@ -70094,6 +70094,7 @@ function generateUuid() {
|
|
|
70094
70094
|
// 记录耗时
|
|
70095
70095
|
const duration = Date.now() - startTime;
|
|
70096
70096
|
if (this.currentMessage) {
|
|
70097
|
+
this.messageLoading = false;
|
|
70097
70098
|
this.currentMessage.time = (duration / 1000).toFixed(2);
|
|
70098
70099
|
}
|
|
70099
70100
|
console.log(`流处理完成,总耗时: ${duration}ms`);
|
|
@@ -70101,10 +70102,9 @@ function generateUuid() {
|
|
|
70101
70102
|
} catch (error) {
|
|
70102
70103
|
console.error('发送消息失败:', error);
|
|
70103
70104
|
if (this.currentMessage) {
|
|
70105
|
+
this.messageLoading = false;
|
|
70104
70106
|
this.currentMessage.content = '抱歉,发生了错误,请重试。';
|
|
70105
70107
|
}
|
|
70106
|
-
} finally {
|
|
70107
|
-
this.messageLoading = false;
|
|
70108
70108
|
}
|
|
70109
70109
|
},
|
|
70110
70110
|
/**
|