Ver código fonte

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

zhangweicheng 3 anos atrás
pai
commit
812cbd81e7
1 arquivos alterados com 2 adições e 2 exclusões
  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}