Skip to content

Commit d969249

Browse files
committed
fix user select
1 parent 8649a29 commit d969249

File tree

1 file changed

+7
-1
lines changed
  • admin-ui/src/components/Flow/flow

1 file changed

+7
-1
lines changed

admin-ui/src/components/Flow/flow/data.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,13 @@ export class FlowData extends FlowWorkData {
121121
// 获取当前节点的按钮
122122
getNodeButtons = () => {
123123
if (this.data) {
124-
return this.data.flowNode.buttons;
124+
const buttons = this.data.flowNode.buttons;
125+
if(buttons){
126+
return buttons.sort((item1:any, item2:any) => {
127+
return item1.order - item2.order;
128+
})
129+
}
130+
return [];
125131
}
126132
return null;
127133
}

0 commit comments

Comments
 (0)