fix: 使用 beforeRouteEnter() 替换 activated(),解决页面刷新异常问题

This commit is contained in:
konbai
2022-11-27 17:59:30 +08:00
parent 0d8d7c5e63
commit d28620ae0a
4 changed files with 16 additions and 18 deletions

View File

@@ -101,11 +101,10 @@ export default {
rules: {}
};
},
created() {
this.getList();
},
activated() {
this.getList();
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getList()
})
},
methods: {
/** 查询流程定义列表 */

View File

@@ -133,11 +133,10 @@ export default {
}
};
},
created() {
this.getList();
},
activated() {
this.getList();
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getList()
})
},
methods: {
/** 查询流程定义列表 */

View File

@@ -165,10 +165,11 @@ export default {
},
created() {
this.getCategoryList();
this.getList();
},
activated() {
this.getList();
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getList()
})
},
methods: {
/** 查询流程分类列表 */

View File

@@ -122,11 +122,10 @@ export default {
rules: {}
};
},
created() {
this.getList();
},
activated() {
this.getList();
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getList()
})
},
methods: {
/** 查询流程定义列表 */