Explorar el Código

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

zhangweicheng hace 3 años
padre
commit
812cbd81e7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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}