mm_machine 1.8.4 → 1.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -92,8 +92,16 @@ class Item {
|
|
|
92
92
|
*/
|
|
93
93
|
Item.prototype.set_config = function(config) {
|
|
94
94
|
this.config = conf(Object.assign({}, this.config, config || {}), this.filename);
|
|
95
|
+
this.set_config_after();
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
/**
|
|
99
|
+
* 设置配置后
|
|
100
|
+
*/
|
|
101
|
+
Item.prototype.set_config_after = function() {
|
|
102
|
+
|
|
103
|
+
};
|
|
104
|
+
|
|
97
105
|
/**
|
|
98
106
|
* 加载完成时
|
|
99
107
|
*/
|
|
@@ -420,7 +428,7 @@ class Index {
|
|
|
420
428
|
/**
|
|
421
429
|
* 模式 0生产模式,1开发模式,2热重载模式
|
|
422
430
|
*/
|
|
423
|
-
this.mode =
|
|
431
|
+
this.mode = 2;
|
|
424
432
|
}
|
|
425
433
|
}
|
|
426
434
|
|