diff --git a/ruoyi-ui/src/views/workflow/work/claim.vue b/ruoyi-ui/src/views/workflow/work/claim.vue index b8c4b08c..62398842 100644 --- a/ruoyi-ui/src/views/workflow/work/claim.vue +++ b/ruoyi-ui/src/views/workflow/work/claim.vue @@ -101,11 +101,10 @@ export default { rules: {} }; }, - created() { - this.getList(); - }, - activated() { - this.getList(); + beforeRouteEnter(to, from, next) { + next(vm => { + vm.getList() + }) }, methods: { /** 查询流程定义列表 */ diff --git a/ruoyi-ui/src/views/workflow/work/finished.vue b/ruoyi-ui/src/views/workflow/work/finished.vue index fa98b96a..f50cf3a8 100644 --- a/ruoyi-ui/src/views/workflow/work/finished.vue +++ b/ruoyi-ui/src/views/workflow/work/finished.vue @@ -133,11 +133,10 @@ export default { } }; }, - created() { - this.getList(); - }, - activated() { - this.getList(); + beforeRouteEnter(to, from, next) { + next(vm => { + vm.getList() + }) }, methods: { /** 查询流程定义列表 */ diff --git a/ruoyi-ui/src/views/workflow/work/own.vue b/ruoyi-ui/src/views/workflow/work/own.vue index 60ff20b9..fc76177c 100644 --- a/ruoyi-ui/src/views/workflow/work/own.vue +++ b/ruoyi-ui/src/views/workflow/work/own.vue @@ -165,10 +165,11 @@ export default { }, created() { this.getCategoryList(); - this.getList(); }, - activated() { - this.getList(); + beforeRouteEnter(to, from, next) { + next(vm => { + vm.getList() + }) }, methods: { /** 查询流程分类列表 */ diff --git a/ruoyi-ui/src/views/workflow/work/todo.vue b/ruoyi-ui/src/views/workflow/work/todo.vue index 5b3f8e19..314fa411 100644 --- a/ruoyi-ui/src/views/workflow/work/todo.vue +++ b/ruoyi-ui/src/views/workflow/work/todo.vue @@ -122,11 +122,10 @@ export default { rules: {} }; }, - created() { - this.getList(); - }, - activated() { - this.getList(); + beforeRouteEnter(to, from, next) { + next(vm => { + vm.getList() + }) }, methods: { /** 查询流程定义列表 */