diff --git a/src/views/bpm/processInstance/create/index.vue b/src/views/bpm/processInstance/create/index.vue
index 92d68bf1..3a8a8810 100644
--- a/src/views/bpm/processInstance/create/index.vue
+++ b/src/views/bpm/processInstance/create/index.vue
@@ -41,7 +41,7 @@
:ref="`category-${categoryCode}`"
>
- {{ getCategoryName(categoryCode) }}
+ {{ getCategoryName(categoryCode as any) }}
{
/** 流程定义的分组 */
const processDefinitionGroup: any = computed(() => {
if (!processDefinitionList.value?.length) return {}
- return groupBy(filteredProcessDefinitionList.value, 'category')
+ const grouped = groupBy(filteredProcessDefinitionList.value, 'category')
+
+ const orderedGroup = {}
+ // 按照 categoryList 的顺序重新组织数据
+ categoryList.value.forEach((category: any) => {
+ if (grouped[category.code]) {
+ orderedGroup[category.code] = grouped[category.code]
+ }
+ })
+
+ return orderedGroup
})
/** 左侧分类切换 */