Skip to content

Commit 1f4dd35

Browse files
fix: Fix the start node cannot be deleted
1 parent a6082c9 commit 1f4dd35

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ui/src/views/chat/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const {
2424
} = route as any
2525
2626
const currentTemplate = computed(() => {
27-
console.log(common.isMobile())
2827
let modeName = ''
2928
if (chatUser.application) {
3029
if (!mode || mode === 'pc') {

ui/src/workflow/common/shortcut.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) {
100100
const nodes = elements.nodes.filter((node) =>
101101
['start-node', 'base-node', 'loop-body-node'].includes(node.type),
102102
)
103-
// if (nodes.length > 0) {
104-
// MsgError(
105-
// `${nodes[0].properties?.stepName}${t('views.applicationWorkflow.delete.deleteMessage')}`,
106-
// )
107-
// return
108-
// }
103+
if (nodes.length > 0) {
104+
MsgError(
105+
`${nodes[0].properties?.stepName}${t('views.applicationWorkflow.delete.deleteMessage')}`,
106+
)
107+
return
108+
}
109109
MsgConfirm(t('common.tip'), t('views.applicationWorkflow.delete.confirmTitle'), {
110110
confirmButtonText: t('common.confirm'),
111111
confirmButtonClass: 'danger',

0 commit comments

Comments
 (0)