update:测试页面切换模型和切换背景的按钮样式调整

This commit is contained in:
rainv123
2026-02-02 10:47:01 +08:00
parent ba2749430f
commit 19fdf5d917
3 changed files with 125 additions and 27 deletions
+4 -4
View File
@@ -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();
});
}