|
@@ -488,6 +488,11 @@ module.exports = app => {
|
|
|
if (item.items[subIdx].uuid === orgUuidName) {
|
|
|
if (item.items[subIdx].childUuids && item.items[subIdx].childUuids.length > 0) {
|
|
|
// 如果有子分页,也得删除!
|
|
|
+ for (const childUuid of item.items[subIdx].childUuids) {
|
|
|
+ let childUuidName = childUuid;
|
|
|
+ if (!childUuid.includes('.PDF')) childUuidName = childUuidName + '.PDF';
|
|
|
+ await ctx.app.signPdfOss.delete(`archive/${childUuidName}`);
|
|
|
+ }
|
|
|
}
|
|
|
item.items.splice(subIdx, 1);
|
|
|
break;
|