feat: add placeholder for MCP server configuration in form fields
This commit is contained in:
parent
db772b1d1c
commit
2971406909
@ -20,6 +20,7 @@
|
|||||||
v-model="form.mcp_servers"
|
v-model="form.mcp_servers"
|
||||||
:rows="6"
|
:rows="6"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
|
:placeholder="mcpServerJson"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -41,6 +42,14 @@ const emit = defineEmits(['refresh'])
|
|||||||
|
|
||||||
const paramFormRef = ref()
|
const paramFormRef = ref()
|
||||||
|
|
||||||
|
const mcpServerJson = `{
|
||||||
|
"math": {
|
||||||
|
"url": "your_server",
|
||||||
|
"transport": "sse"
|
||||||
|
}
|
||||||
|
}`
|
||||||
|
|
||||||
|
|
||||||
const form = ref<any>({
|
const form = ref<any>({
|
||||||
mcp_servers: '',
|
mcp_servers: '',
|
||||||
mcp_enable: false
|
mcp_enable: false
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
v-model="form_data.mcp_servers"
|
v-model="form_data.mcp_servers"
|
||||||
style="height: 150px"
|
style="height: 150px"
|
||||||
@submitDialog="submitDialog"
|
@submitDialog="submitDialog"
|
||||||
|
:placeholder="mcpServerJson"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -170,6 +171,13 @@ const props = defineProps<{ nodeModel: any }>()
|
|||||||
const dynamicsFormRef = ref()
|
const dynamicsFormRef = ref()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
|
const mcpServerJson = `{
|
||||||
|
"math": {
|
||||||
|
"url": "your_server",
|
||||||
|
"transport": "sse"
|
||||||
|
}
|
||||||
|
}`
|
||||||
|
|
||||||
const wheel = (e: any) => {
|
const wheel = (e: any) => {
|
||||||
if (e.ctrlKey === true) {
|
if (e.ctrlKey === true) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user