mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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"
|
||||
: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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue