Browse Source

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

zhangweicheng 3 years ago
parent
commit
812cbd81e7
1 changed files with 2 additions and 2 deletions
  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}