Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2026-03-09 22:19:22 +08:00
1 parent 379486d36c
commit f26ee8e6e7
11 files changed
+990 -200

No files matched your search

+5
View File
@@ -1433,6 +1433,11 @@ document.addEventListener('DOMContentLoaded', () => {
updateRoleSelectorDisplay();
});
// 语言切换后刷新角色选择器显示(默认/自定义角色名)
document.addEventListener('languagechange', () => {
updateRoleSelectorDisplay();
});
// 获取当前选中的角色(供chat.js使用)
function getCurrentRole() {
return currentRole || '';