Explorar o código

修改字段必填

asd123a20 %!s(int64=2) %!d(string=hai) anos
pai
achega
12bc27f896
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      service-cms/app/model/content.js

+ 1 - 1
service-cms/app/model/content.js

@@ -34,7 +34,7 @@ const SchemaDefine = {
   // 关键词
   keywords: { type: Array, required: false, default: [] },
   // 副标题
-  curtTitle: { type: String, required: true },
+  curtTitle: { type: String, required: false },
 };
 const schema = new Schema(SchemaDefine);
 module.exports = app => {