fix: 发起流程页面-进入页面时左侧第一个分类没有active样式bug修复

pull/594/head
GoldenZqqq 2024-11-20 11:26:30 +08:00
parent 7b8e4ea238
commit 138d535e87
1 changed files with 5 additions and 6 deletions

View File

@ -137,12 +137,6 @@ const getCategoryList = async () => {
try { try {
// //
categoryList.value = await CategoryApi.getCategorySimpleList() categoryList.value = await CategoryApi.getCategorySimpleList()
//
await nextTick()
//
if (availableCategories.value.length > 0) {
categoryActive.value = availableCategories.value[0]
}
} finally { } finally {
} }
} }
@ -156,6 +150,11 @@ const getProcessDefinitionList = async () => {
}) })
// //
filteredProcessDefinitionList.value = processDefinitionList.value filteredProcessDefinitionList.value = processDefinitionList.value
//
if (availableCategories.value.length > 0 && !categoryActive.value?.code) {
categoryActive.value = availableCategories.value[0]
}
} finally { } finally {
} }
} }