mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 09:03:54 +08:00
优化:拆分test_page.html,把一部分opus和document操作的代码提取出来,减少单个文件大小
This commit is contained in:
@@ -26,3 +26,14 @@ export function getLogContainer (flan) {
|
||||
return logContainer;
|
||||
}
|
||||
|
||||
// 更新Opus库状态显示
|
||||
export function updateScriptStatus(message, type) {
|
||||
const statusElement = document.getElementById('scriptStatus');
|
||||
if (statusElement) {
|
||||
statusElement.textContent = message;
|
||||
statusElement.className = `script-status ${type}`;
|
||||
statusElement.style.display = 'block';
|
||||
statusElement.style.width = 'auto';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user