@wendongfly/myhi 1.3.67 → 1.3.69
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/chat.html +13 -1
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -3132,11 +3132,23 @@
|
|
|
3132
3132
|
: '点击大按钮开始录音,再次点击停止,多轮累积后整理成需求...';
|
|
3133
3133
|
el.innerHTML = `<span style="color:#8b949e">${hint}</span>`;
|
|
3134
3134
|
} else {
|
|
3135
|
-
el.
|
|
3135
|
+
el.innerHTML = _vaLines.map((t, i) =>
|
|
3136
|
+
`<div style="display:flex;gap:0.4rem;margin-bottom:0.45rem;align-items:flex-start">` +
|
|
3137
|
+
`<span style="color:#8b949e;font-size:0.72rem;min-width:1.6em;padding-top:0.15rem;flex-shrink:0">[${i+1}]</span>` +
|
|
3138
|
+
`<span style="flex:1;word-break:break-all;line-height:1.55">${escHtml(t)}</span>` +
|
|
3139
|
+
`<button onclick="vaDeleteLine(${i})" style="background:none;border:none;color:#6e7681;font-size:1rem;cursor:pointer;padding:0 0.15rem;flex-shrink:0;line-height:1" title="删除此段">×</button>` +
|
|
3140
|
+
`</div>`
|
|
3141
|
+
).join('');
|
|
3136
3142
|
el.scrollTop = el.scrollHeight;
|
|
3137
3143
|
}
|
|
3138
3144
|
}
|
|
3139
3145
|
|
|
3146
|
+
window.vaDeleteLine = function(i) {
|
|
3147
|
+
_vaLines.splice(i, 1);
|
|
3148
|
+
_vaRender();
|
|
3149
|
+
_vaSetStatus(_vaLines.length ? `已删除,剩余 ${_vaLines.length} 段` : '');
|
|
3150
|
+
};
|
|
3151
|
+
|
|
3140
3152
|
async function _vaStart() {
|
|
3141
3153
|
if (_vaActive) return;
|
|
3142
3154
|
if (!navigator.mediaDevices?.getUserMedia) {
|