fix attribute name

This commit is contained in:
2024-10-25 21:35:59 +08:00
parent c07257bb44
commit ae14fa3078
8 changed files with 98 additions and 142 deletions

View File

@@ -26,8 +26,9 @@ export const Config: TemplateConfig<ConfigType> = {
name: '封面',
type: 'image',
imageLimit: 1,
key: 'cover',
onUploaded: (url, config) => {
config.cover = url instanceof String ? (url as string) : url[0]
config.cover = url[0]
},
},
{