Refactor char folder image upload process to use direct upload method

This commit is contained in:
poroyo
2024-12-30 07:31:40 +09:00
parent b83cb444b9
commit 2730e40b3b
3 changed files with 38 additions and 26 deletions

View File

@@ -1081,6 +1081,14 @@ export function getUnpargeables(db: Database, uptype: 'basename' | 'pure' = 'bas
addUnparge(v.icon);
});
}
if(db.characterOrder){
db.characterOrder.forEach((item) => {
if (typeof item === 'object' && 'imgFile' in item) {
addUnparge(item.imgFile);
}
})
}
return unpargeable;
}

View File

@@ -1203,6 +1203,7 @@ export interface folder{
data:string[]
color:string
id:string
imgFile?:string
img?:string
}