优化:拆分test_page.html,把一部分opus和document操作的代码提取出来,减少单个文件大小

This commit is contained in:
JianYu Zheng
2025-08-11 18:04:01 +08:00
parent c7392dcf5a
commit 1cff39cec4
3 changed files with 55 additions and 51 deletions
+11
View File
@@ -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';
}
}