解决浏览器刷新流程详情页面不展示的问题

This commit is contained in:
BMJ
2022-11-22 23:01:23 +08:00
parent 931cd3498b
commit 176bce9037

View File

@@ -302,7 +302,14 @@ export default {
userOpen: false userOpen: false
}; };
}, },
created() {
this.init();
},
activated() { activated() {
this.init();
},
methods: {
init() {
this.taskForm.deployId = this.$route.query && this.$route.query.deployId; this.taskForm.deployId = this.$route.query && this.$route.query.deployId;
this.taskForm.definitionId = this.$route.query && this.$route.query.definitionId; this.taskForm.definitionId = this.$route.query && this.$route.query.definitionId;
this.taskForm.taskId = this.$route.query && this.$route.query.taskId; this.taskForm.taskId = this.$route.query && this.$route.query.taskId;
@@ -314,7 +321,6 @@ export default {
} }
this.loadIndex = this.taskForm.procInsId; this.loadIndex = this.taskForm.procInsId;
}, },
methods: {
/** 查询部门下拉树结构 */ /** 查询部门下拉树结构 */
getTreeSelect() { getTreeSelect() {
deptTreeSelect().then(response => { deptTreeSelect().then(response => {