v1.0.2修复优化
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
<div class="config-container">
|
||||
<div class="config-header">
|
||||
<h1>⚙️ 系统配置</h1>
|
||||
<a href="/chat.php" class="btn btn-secondary">← 返回聊天</a>
|
||||
<h1>
|
||||
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-4px;margin-right:8px;"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"/></svg>
|
||||
系统配置
|
||||
</h1>
|
||||
<a href="/chat.php" class="btn btn-secondary">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px;margin-right:4px;"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
|
||||
返回聊天
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- 供应商管理 -->
|
||||
@@ -25,8 +31,8 @@
|
||||
<input type="text" id="newPersonalityName" placeholder="人格名称">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>图标(Emoji)</label>
|
||||
<input type="text" id="newPersonalityIcon" placeholder="如:🤖" maxlength="2">
|
||||
<label>图标</label>
|
||||
<input type="text" id="newPersonalityIcon" placeholder="如:A" maxlength="2">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>提示词</label>
|
||||
@@ -188,7 +194,7 @@ const ConfigPage = {
|
||||
list.innerHTML = this.personalities.map(p => `
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;padding:12px;background:var(--bg-secondary);border-radius:var(--radius);margin-bottom:8px;">
|
||||
<div>
|
||||
<span>${p.icon || '🤖'} ${this.escapeHtml(p.name)}</span>
|
||||
<span>${p.icon ? '<span style="margin-right:4px;">' + this.escapeHtml(p.icon) + '</span>' : ''}${this.escapeHtml(p.name)}</span>
|
||||
${p.is_preset ? '<span style="color:var(--warning);font-size:12px;margin-left:8px;">预设</span>' : '<span style="color:var(--success);font-size:12px;margin-left:8px;">自定义</span>'}
|
||||
</div>
|
||||
${!p.is_preset ? '<button class="btn btn-danger btn-sm" onclick="ConfigPage.deletePersonality(' + p.id + ')">删除</button>' : ''}
|
||||
|
||||
Reference in New Issue
Block a user