AI Node Custom重命名为Local AI Node

This commit is contained in:
jingrow 2025-09-24 11:38:43 +08:00
parent 657217d670
commit e350c78ea5
2 changed files with 6 additions and 6 deletions

View File

@ -7,9 +7,9 @@ const BACKEND_SERVER_URL = ''
// 使用通用函数,这里可以保留别名或直接使用
export { getFieldSelectOptions as getNodeFieldSelectOptions } from './common'
export const getNodeGroups = () => getFieldSelectOptions('AI Node Custom', 'node_group')
export const getNodeComponents = () => getFieldSelectOptions('AI Node Custom', 'node_component')
export const getNodeStatusOptions = () => getFieldSelectOptions('AI Node Custom', 'status')
export const getNodeGroups = () => getFieldSelectOptions('Local AI Node', 'node_group')
export const getNodeComponents = () => getFieldSelectOptions('Local AI Node', 'node_component')
export const getNodeStatusOptions = () => getFieldSelectOptions('Local AI Node', 'status')
// 检查 node_type 是否已存在(后端返回布尔值)
export const checkNodeTypeExists = async (nodeType: string): Promise<boolean> => {
@ -29,12 +29,12 @@ export const checkNodeTypeExists = async (nodeType: string): Promise<boolean> =>
// 创建节点(使用通用函数)
export const createNode = async (data: Record<string, any>): Promise<{ success: boolean; data?: any; message?: string }> => {
return createRecord('AI Node Custom', data)
return createRecord('Local AI Node', data)
}
// 删除节点(支持批量删除)
export const deleteNodes = async (names: string[]): Promise<{ success: boolean; message?: string }> => {
return deleteRecords('AI Node Custom', names)
return deleteRecords('Local AI Node', names)
}
// 获取节点记录根据name

View File

@ -355,7 +355,7 @@ function initSchemaEditor(dialog: any, handleSchemaSave: any) {
const schemaBuilder = new window.jingrow.ui.SchemaBuilder({
wrapper: container,
frm: mockFrm,
pagetype: 'AI Node Custom',
pagetype: 'Local AI Node',
customize: false
})