feat: add placeholder for MCP server configuration in form fields

This commit is contained in:
CaptainB 2025-03-26 16:45:33 +08:00
parent db772b1d1c
commit 2971406909
2 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,7 @@
v-model="form.mcp_servers"
:rows="6"
type="textarea"
:placeholder="mcpServerJson"
/>
</el-form-item>
</el-form>
@ -41,6 +42,14 @@ const emit = defineEmits(['refresh'])
const paramFormRef = ref()
const mcpServerJson = `{
"math": {
"url": "your_server",
"transport": "sse"
}
}`
const form = ref<any>({
mcp_servers: '',
mcp_enable: false

View File

@ -18,6 +18,7 @@
v-model="form_data.mcp_servers"
style="height: 150px"
@submitDialog="submitDialog"
:placeholder="mcpServerJson"
/>
</el-form-item>
<el-form-item>
@ -170,6 +171,13 @@ const props = defineProps<{ nodeModel: any }>()
const dynamicsFormRef = ref()
const loading = ref(false)
const mcpServerJson = `{
"math": {
"url": "your_server",
"transport": "sse"
}
}`
const wheel = (e: any) => {
if (e.ctrlKey === true) {
e.preventDefault()