mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: ensure mcp_source is set to 'custom' only when mcp_servers is not empty
This commit is contained in:
parent
e8060aef5c
commit
175cfa3308
|
|
@ -152,7 +152,7 @@ function mcpSourceChange() {
|
||||||
|
|
||||||
const open = (data: any, selectOptions: any) => {
|
const open = (data: any, selectOptions: any) => {
|
||||||
form.value = { ...form.value, ...data }
|
form.value = { ...form.value, ...data }
|
||||||
if (data.mcp_servers) {
|
if (data.mcp_servers && Object.keys(data.mcp_servers).length > 0) {
|
||||||
form.value.mcp_source = 'custom'
|
form.value.mcp_source = 'custom'
|
||||||
} else if (data.mcp_tool_ids) {
|
} else if (data.mcp_tool_ids) {
|
||||||
form.value.mcp_source = 'referencing'
|
form.value.mcp_source = 'referencing'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue