mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 09:03:54 +08:00
update: 去除未使用代码
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
// ota 是否连接成功,修改成对应的样式
|
||||
export function otaStatusStyle(flan) {
|
||||
const otaStatusElement = document.getElementById('otaStatus');
|
||||
if (otaStatusElement) {
|
||||
if (flan) {
|
||||
otaStatusElement.textContent = 'OTA已连接';
|
||||
otaStatusElement.style.color = 'green';
|
||||
} else {
|
||||
otaStatusElement.textContent = 'OTA未连接';
|
||||
otaStatusElement.style.color = 'red';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 更新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