diff --git a/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue b/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue index 38eebd44..3800f191 100644 --- a/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue +++ b/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue @@ -8,8 +8,8 @@ - -
+ +
@@ -90,7 +90,7 @@ const props = defineProps<{ selectProcessDefinition: any }>() const emit = defineEmits(['cancel']) - +const processInstanceStartLoading = ref(false) // 流程实例发起中 const { push, currentRoute } = useRouter() // 路由 const message = useMessage() // 消息弹窗 const { delView } = useTagsViewStore() // 视图操作 @@ -193,7 +193,7 @@ const submitForm = async () => { } // 提交请求 - fApi.value.btn.loading(true) + processInstanceStartLoading.value = true try { await ProcessInstanceApi.createProcessInstance({ processDefinitionId: props.selectProcessDefinition.id, @@ -208,7 +208,7 @@ const submitForm = async () => { name: 'BpmProcessInstanceMy' }) } finally { - fApi.value.btn.loading(false) + processInstanceStartLoading.value = false } }