fix: 流程详情页与流程发起页修改为动态路由,解决页面数据不刷新与刷新转圈的问题

This commit is contained in:
konbai
2022-11-27 15:16:44 +08:00
parent 76ed6b4cc5
commit 0d8d7c5e63
8 changed files with 39 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ import { getProcessForm, startProcess } from '@/api/workflow/process'
import Parser from '@/utils/generator/parser'
export default {
name: 'Start',
name: 'WorkStart',
components: {
Parser
},
@@ -30,15 +30,13 @@ export default {
formData: {},
}
},
beforeRouteEnter(to, from, next) {
next(vm => {
vm.initData()
})
created() {
this.initData();
},
methods: {
initData() {
this.deployId = this.$route.params && this.$route.params.deployId;
this.definitionId = this.$route.query && this.$route.query.definitionId;
this.deployId = this.$route.query && this.$route.query.deployId;
getProcessForm({
definitionId: this.definitionId,
deployId: this.deployId