fix issues

This commit is contained in:
2026-09-01 14:52:20 +08:00
parent 24b09281f5
commit 86ec831b74
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ body {
.modal select {
width: 100%; border: 1px solid #dde; border-radius: 8px;
padding: 10px 12px; font-size: 15px; margin-bottom: 10px; outline: none;
background: #fff; color: #334; appearance: auto;
background: #fff; color: #334; appearance: none;
}
.modal select:focus { border-color: #2a5299; }
.modal-close-btn {
+1 -1
View File
@@ -90,7 +90,7 @@
</button>
<h3>新建任务会话</h3>
<input type="text" id="new-title" placeholder="任务标题(留空自动取首条消息)" style="width:100%">
<select id="new-model" style="width:100%"><option value="">自动分配(使用任一空闲模型)</option></select>
<select id="new-model" style="width:100%"><option value="">自动分配</option></select>
<button class="primary-btn" onclick="ui.createSession()" style="width:100%">创建</button>
</div>
</div>
+2 -2
View File
@@ -408,9 +408,9 @@ const ui = {
const rows = await req('GET', '/api/models');
const free = rows.filter(m => !m.is_busy);
sel.innerHTML = free.length
? '<option value="">自动分配(使用任一空闲模型)</option>' + free.map(m =>
? '<option value="">自动分配</option>' + free.map(m =>
'<option value="' + esc(m.id) + '">' + esc(m.display_name || m.id) + '</option>').join('')
: '<option value="">暂无空闲模型(将排队等待)</option>';
: '<option value="">排队等待</option>';
} catch (_) { /* 保留默认选项 */ }
$('create-modal').classList.remove('hidden');
$('new-title').focus();