diff --git a/lib/Lib/Core/Model.js b/lib/Lib/Core/Model.js index 1c25e43c..14d1ead6 100644 --- a/lib/Lib/Core/Model.js +++ b/lib/Lib/Core/Model.js @@ -94,7 +94,7 @@ var Model = module.exports = Class(function(){ if (isString(config)) { config = {db_prefix: config}; } - this.config = config || ''; + this.config = config || {}; //如果Model设置了实际数据库名,则需要将数据库名进行设置 if(this.dbName) {