@@ -483,7 +483,6 @@ export default {
if (this.active === this.totalStep - 1) {
this.active = this.totalStep
}
- // this.$refs.table.onPagination();
},
refresh () {
this.getPublishWorkflowDetail()
@@ -25,6 +25,13 @@ import { getEventDescription } from '@/utils/event'
export default {
name: 'WorkflowList',
+ beforeRouteEnter (to, from, next) {
+ next(vm => {
+ if (from.name === 'workflow-detail') {
+ vm.$refs.table.decrease(1)
+ }
+ })
+ },
data () {
return {
schema: {
@@ -227,7 +227,7 @@ export default {
restart (item) {
calendarPublishRestart(item.workflowId, item.name).then(() => {
- this.$refs.table.onPagination()
+ this.$refs.table.decrease(1)
})