fix: 使用 beforeRouteEnter() 替换 activated(),解决页面刷新异常问题
This commit is contained in:
@@ -101,11 +101,10 @@ export default {
|
|||||||
rules: {}
|
rules: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
beforeRouteEnter(to, from, next) {
|
||||||
this.getList();
|
next(vm => {
|
||||||
},
|
vm.getList()
|
||||||
activated() {
|
})
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询流程定义列表 */
|
/** 查询流程定义列表 */
|
||||||
|
|||||||
@@ -133,11 +133,10 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
beforeRouteEnter(to, from, next) {
|
||||||
this.getList();
|
next(vm => {
|
||||||
},
|
vm.getList()
|
||||||
activated() {
|
})
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询流程定义列表 */
|
/** 查询流程定义列表 */
|
||||||
|
|||||||
@@ -165,10 +165,11 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCategoryList();
|
this.getCategoryList();
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
activated() {
|
beforeRouteEnter(to, from, next) {
|
||||||
this.getList();
|
next(vm => {
|
||||||
|
vm.getList()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询流程分类列表 */
|
/** 查询流程分类列表 */
|
||||||
|
|||||||
@@ -122,11 +122,10 @@ export default {
|
|||||||
rules: {}
|
rules: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
beforeRouteEnter(to, from, next) {
|
||||||
this.getList();
|
next(vm => {
|
||||||
},
|
vm.getList()
|
||||||
activated() {
|
})
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询流程定义列表 */
|
/** 查询流程定义列表 */
|
||||||
|
|||||||
Reference in New Issue
Block a user