diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 1523e5d7..3799efc9 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -1262,6 +1262,11 @@ async function submitService(notClose = false) { onCreateImageList.value, ); if (res) { + const group = productGroup.value?.find( + (g) => g.id === currentIdGroup.value, + ); + if (group) group.status = 'ACTIVE'; + allStat.value[1].count = allStat.value[1].count + 1; stat.value[1].count = stat.value[1].count + 1; } else { @@ -1306,6 +1311,11 @@ async function submitProduct(notClose = false) { ); if (res) { + const group = productGroup.value?.find( + (g) => g.id === currentIdGroup.value, + ); + if (group) group.status = 'ACTIVE'; + allStat.value[2].count = allStat.value[2].count + 1; stat.value[2].count = stat.value[2].count + 1; } else {