修改历史记录icon大小、修改出现报告提示语句
This commit is contained in:
@@ -176,7 +176,7 @@ export class StateManager {
|
||||
return superiorNodeUrl
|
||||
}
|
||||
/** 获取下级所有子级节点 */
|
||||
async getSubordinateAllNodes(id: string,{ isElMessageBox } = { isElMessageBox: false }) {
|
||||
async deleteSubordinateAllNodes(id: string,{ isElMessageBox } = { isElMessageBox: false }) {
|
||||
const node = this.getNodeById(id)
|
||||
if (!node) return console.warn(`没有找到指定id:${id}`)
|
||||
if (node.data.disableDelete) return ElMessage.error(t('flowCanvas.initialNodeProhibited'))
|
||||
@@ -210,6 +210,11 @@ export class StateManager {
|
||||
})
|
||||
}
|
||||
if(!deletePromise) return console.log('删除操作被取消')
|
||||
|
||||
if(node.data.data.imageProcessTasks.length > 1){
|
||||
node.data.data.imageProcessTasks = node.data.data.imageProcessTasks.filter((item) => item.taskId !== node.data.data.selectTaskId)
|
||||
return
|
||||
}
|
||||
|
||||
this.deleteNode(id)
|
||||
result.forEach(item => {
|
||||
|
||||
Reference in New Issue
Block a user