diff --git a/app/share/[id]/page.test.tsx b/app/share/[id]/page.test.tsx
index 69bcd792..44ffda29 100644
--- a/app/share/[id]/page.test.tsx
+++ b/app/share/[id]/page.test.tsx
@@ -152,6 +152,12 @@ jest.mock('@/components/detail/ProductPackageDetail', () => ({
+
+
- {pendingGroupEdit
- ? '这些分组会一起提交。提交前可以撤销任意一组。'
- : '替换和插入文件先留在临时区,点击提交后再进入主管确认,不会立即覆盖正式素材。'}
+ 主图、详情图和 SKU 图可以一起提交,提交前可以逐项撤销。
@@ -1761,25 +1738,24 @@ export default function SharePage() {
onClick={() => void applyTaskDetailPendingOps()}
className="min-h-10 rounded-lg bg-[#1a1c1d] px-4 py-1.5 text-[12px] font-medium text-white transition-all hover:opacity-80 active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-50"
>
- {taskDetailApplying
- ? '正在提交…'
- : pendingGroupEdit
- ? (pendingGroupEdits.length === 1 ? '提交整组变更' : `提交 ${pendingGroupEdits.length} 组变更`)
- : `提交主管确认 ${taskDetailPendingOps.length} 项`}
+ {taskDetailApplying ? '正在提交…' : '提交全部变更'}
{taskDetailPendingOps.map((op) => {
- const actionLabel = op.kind === 'group_images'
+ const group = 'assetId' in op ? getTaskDetailAssetGroup(op.assetId) : null
+ const label = op.kind === 'group_images'
? (op.uploadIds.length > 0 ? '替换' : '删除')
- : TASK_DETAIL_OPERATION_LABELS[op.kind]
+ : group ? TASK_DETAIL_GROUP_LABELS[group] : null
return (
-
-
- {actionLabel}
-
+ {label && (
+
+ {label}
+
+ )}
{op.label}