Explorar o código

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

zhangweicheng %!s(int64=3) %!d(string=hai) anos
pai
achega
812cbd81e7
Modificáronse 1 ficheiros con 2 adicións e 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}