diff --git a/collection/uni-cms-articles/collection.json b/collection/uni-cms-articles/collection.json index 17f0337..d6fde80 100644 --- a/collection/uni-cms-articles/collection.json +++ b/collection/uni-cms-articles/collection.json @@ -124,11 +124,11 @@ "foreignKey": "uni-id-users._id" }, "thumbnail": { - "bsonType": "string", + "bsonType": "array", "title": "封面大图", "description": "缩略图地址", "label": "封面大图", - "trim": "both" + "defaultValue": [] }, "publish_date": { "bsonType": "timestamp", diff --git a/collection/uni-cms-articles/schema.json b/collection/uni-cms-articles/schema.json index d4f2243..60ef8cc 100644 --- a/collection/uni-cms-articles/schema.json +++ b/collection/uni-cms-articles/schema.json @@ -123,11 +123,11 @@ "foreignKey": "uni-id-users._id" }, "thumbnail": { - "bsonType": "string", + "bsonType": "array", "title": "封面大图", "description": "缩略图地址", "label": "封面大图", - "trim": "both" + "defaultValue": [] }, "publish_date": { "bsonType": "timestamp",