fix: 弹框添加滚动功能
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>AI助手 - 后台管理</title>
|
<title>AI助手 - 后台管理</title>
|
||||||
|
<link rel="stylesheet" href="admin.css?v=3.6.6">
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--primary: #667eea;
|
--primary: #667eea;
|
||||||
@@ -318,6 +319,8 @@
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
max-height: 80vh;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
@@ -470,6 +473,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="admin.js?v=3.6.3"></script>
|
<script src="admin.js?v=3.6.6"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
17
www/admin.js
17
www/admin.js
@@ -512,8 +512,21 @@ function showAddAgentModal() {
|
|||||||
<button class="form-submit" onclick="saveAgent()">保存</button>
|
<button class="form-submit" onclick="saveAgent()">保存</button>
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
</select>
|
||||||
function showEditAgentModal(agentId) {
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">描述</label>
|
||||||
|
<input type="text" class="form-input" id="agentDescription" placeholder="智能体描述">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">System Prompt</label>
|
||||||
|
<textarea class="form-textarea" id="agentPrompt" placeholder="系统提示词"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">LLM配置</label>
|
||||||
|
<select class="form-select" id="agentLLM">
|
||||||
|
<option value="">使用默认</option>
|
||||||
|
${llmConfigs.map(c => `<option value="${c.id}">${c.name}</option>`).join('')}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user