fix: Optimize details
This commit is contained in:
parent
deb3844b4c
commit
7421caba9b
@ -279,8 +279,11 @@ async function publicHandle() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
applicationApi.putPublishApplication(id as String, obj, loading).then(() => {
|
applicationApi.putPublishApplication(id as String, obj, loading).then(() => {
|
||||||
|
|
||||||
|
application.asyncGetApplicationDetail(id, loading).then((res: any) => {
|
||||||
|
detail.value.name = res.data.name
|
||||||
MsgSuccess(t('views.applicationWorkflow.tip.publicSuccess'))
|
MsgSuccess(t('views.applicationWorkflow.tip.publicSuccess'))
|
||||||
getDetail()
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((res: any) => {
|
.catch((res: any) => {
|
||||||
|
|||||||
@ -245,7 +245,7 @@ const validate = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onEnd(event?: any) {
|
function onEnd(event?: any) {
|
||||||
const { oldIndex, newIndex, clonedData } = event
|
const { oldIndex, newIndex } = event
|
||||||
if (oldIndex === undefined || newIndex === undefined) return
|
if (oldIndex === undefined || newIndex === undefined) return
|
||||||
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
|
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
|
||||||
if (oldIndex === list.length - 1 || newIndex === list.length - 1) {
|
if (oldIndex === list.length - 1 || newIndex === list.length - 1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user