diff --git a/Docker外挂配置指南.md b/Docker外挂配置指南.md index 42a0c565b..f92c1b7cd 100644 --- a/Docker外挂配置指南.md +++ b/Docker外挂配置指南.md @@ -27,7 +27,7 @@ ### 1.3 镜像打包 -1. docker build -f installer/Dockerfile -t maxkb:latest +1. docker build -f installer/Dockerfile -t maxkb:latest . ## 2. 数据库外挂配置 diff --git a/static/admin/index.html b/static/admin/index.html index 349dcce87..3b5767d39 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -3,4 +3,4 @@ prefix: '/admin', chatPrefix: '/chat', } - })()
\ No newline at end of file + })()
\ No newline at end of file diff --git a/ui/package.json b/ui/package.json index 004cb41e4..95eb6c884 100644 --- a/ui/package.json +++ b/ui/package.json @@ -21,7 +21,7 @@ "@codemirror/lang-python": "^6.2.1", "@codemirror/theme-one-dark": "^6.1.2", "@logicflow/core": "^1.2.27", - "@logicflow/extension": "^2.1.15", + "@logicflow/extension": "^1.2.27", "@vavt/cm-extension": "^1.9.1", "@vueuse/core": "^13.3.0", "axios": "^1.8.4", diff --git a/ui/src/views/application-workflow/component/DropdownMenu.vue b/ui/src/views/application-workflow/component/DropdownMenu.vue index 3f535844a..732e48ce1 100644 --- a/ui/src/views/application-workflow/component/DropdownMenu.vue +++ b/ui/src/views/application-workflow/component/DropdownMenu.vue @@ -38,7 +38,7 @@ class="list-item flex align-center border border-r-6 p-8-12 cursor" style="width: calc(50% - 6px)" @click.stop="clickNodes(item)" - @mousedown.stop="onmousedown(item)" + @mousedown="onmousedown(item, undefined, undefined, $event)" > @@ -112,7 +112,7 @@ @@ -208,7 +208,7 @@ function clickNodes(item: any, data?: any, type?: string) { emit('clickNodes', item) } -function onmousedown(item: any, data?: any, type?: string) { +function onmousedown(item: any, data?: any, type?: string, event?: MouseEvent) { if (data) { item['properties']['stepName'] = data.name if (type == 'tool') { @@ -239,7 +239,7 @@ function onmousedown(item: any, data?: any, type?: string) { } } } - props.workflowRef?.onmousedown(item) + props.workflowRef?.onmousedown(item, event) emit('onmousedown', item) } diff --git a/ui/src/views/application-workflow/component/NodeContent.vue b/ui/src/views/application-workflow/component/NodeContent.vue index 1476242ac..a4e228741 100644 --- a/ui/src/views/application-workflow/component/NodeContent.vue +++ b/ui/src/views/application-workflow/component/NodeContent.vue @@ -20,7 +20,7 @@ class="list-item flex align-center border border-r-6 p-8-12 cursor" style="width: calc(50% - 6px)" @click.stop="emit('clickNodes', item)" - @mousedown.stop="emit('onmousedown', item)" + @mousedown="emit('onmousedown', item, $event)" > () const filterText = ref('') diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 41382c0a3..0762ff2c8 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -159,7 +159,9 @@ import { ComplexPermission } from '@/utils/permission/type' import { EditionConst, PermissionConst, RoleConst } from '@/utils/permission/data' import permissionMap from '@/permission' import { loadSharedApi } from '@/utils/dynamics-api/shared-api' +import { WorkflowMode } from '@/enums/application' provide('getApplicationDetail', () => detail) +provide('workflowMode', WorkflowMode.Application) const { theme } = useStore() const router = useRouter() const route = useRoute() diff --git a/ui/src/workflow/common/NodeContainer.vue b/ui/src/workflow/common/NodeContainer.vue index e62d1ee4b..abb4e66a6 100644 --- a/ui/src/workflow/common/NodeContainer.vue +++ b/ui/src/workflow/common/NodeContainer.vue @@ -1,5 +1,5 @@