fix: Fix the start node cannot be deleted

v3.2
wangdan-fit2cloud 2025-10-16 11:09:33 +08:00
parent a6082c909f
commit 1f4dd3577c
2 changed files with 6 additions and 7 deletions

View File

@ -24,7 +24,6 @@ const {
} = route as any
const currentTemplate = computed(() => {
console.log(common.isMobile())
let modeName = ''
if (chatUser.application) {
if (!mode || mode === 'pc') {

View File

@ -100,12 +100,12 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) {
const nodes = elements.nodes.filter((node) =>
['start-node', 'base-node', 'loop-body-node'].includes(node.type),
)
// if (nodes.length > 0) {
// MsgError(
// `${nodes[0].properties?.stepName}${t('views.applicationWorkflow.delete.deleteMessage')}`,
// )
// return
// }
if (nodes.length > 0) {
MsgError(
`${nodes[0].properties?.stepName}${t('views.applicationWorkflow.delete.deleteMessage')}`,
)
return
}
MsgConfirm(t('common.tip'), t('views.applicationWorkflow.delete.confirmTitle'), {
confirmButtonText: t('common.confirm'),
confirmButtonClass: 'danger',