feat: 为每个适配器添加描述,可在 WebUI 中查看

This commit is contained in:
foxhui
2025-12-29 02:52:22 +08:00
Unverified
parent 6067a396c2
commit 6f4860dbca
32 changed files with 42 additions and 13 deletions
@@ -89,6 +89,12 @@ const handleSave = async () => {
<!-- 配置抽屉 -->
<a-drawer v-if="currentAdapter" v-model:open="drawerVisible" :title="`配置适配器 - ${currentAdapter.id}`" width="500"
placement="right">
<!-- 适配器描述 -->
<div v-if="currentAdapter.description"
style="margin-bottom: 16px; padding: 12px; background: #f5f5f5; border-radius: 6px; color: #666; font-size: 13px; line-height: 1.6;">
{{ currentAdapter.description }}
</div>
<div v-if="!currentAdapter.configSchema || currentAdapter.configSchema.length === 0">
<a-empty description="该适配器没有可配置项" />
</div>