Browse Source

feat: 读取单体模板文件问题

zhangweicheng 3 năm trước cách đây
mục cha
commit
812cbd81e7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      modules/all_models/monomer_template.js

+ 2 - 2
modules/all_models/monomer_template.js

@@ -13,8 +13,8 @@ const monomerTemplate_lib = new Schema({
         name: String,
         compilationID: String,
         data: {
-            type: [Schema.Types.Mixed],
-            default: []
+            type: Schema.Types.Mixed,
+            default: {}
         }
     },
     {versionKey: false}