mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 08:33:53 +08:00
update:测试页面切换模型和切换背景的按钮样式调整
This commit is contained in:
@@ -89,10 +89,10 @@ class UIController {
|
||||
backgroundBtn.addEventListener('click', this.switchBackground);
|
||||
}
|
||||
|
||||
// Model switch button
|
||||
const switchModelBtn = document.getElementById('switchModelBtn');
|
||||
if (switchModelBtn) {
|
||||
switchModelBtn.addEventListener('click', () => {
|
||||
// Model select change event
|
||||
const modelSelect = document.getElementById('live2dModelSelect');
|
||||
if (modelSelect) {
|
||||
modelSelect.addEventListener('change', () => {
|
||||
this.switchLive2DModel();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user