mm_os 2.9.8 → 2.9.9

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.
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
package/index.js CHANGED
@@ -81,8 +81,6 @@ class OS {
81
81
  }
82
82
  }
83
83
 
84
- OS.prototype.init_mod = function() {}
85
-
86
84
  /**
87
85
  * 初始化数据
88
86
  * @param {Object} config 配置参数
@@ -263,7 +261,7 @@ OS.prototype.before = async function(state) {
263
261
  * @param {String} state 状态
264
262
  */
265
263
  OS.prototype.after = async function(state) {
266
- this.app.runApp();
264
+ await this.app.runApp();
267
265
  };
268
266
 
269
267
  /**
package/lib/app.js CHANGED
@@ -27,6 +27,10 @@ App.prototype.fullAction = function(action) {
27
27
  action.init_before = function() {
28
28
  // 创建插件
29
29
  this.plugin = $.plugin_admin(action.key, action.title || action.name);
30
+ }
31
+ }
32
+ if (!action.methods.start_after) {
33
+ action.start_after = function() {
30
34
  this.plugin.update(action.jsonFile.dirname()).then(() => {
31
35
  this.plugin.run(null, 'init').then(() => {
32
36
  this.plugin.run(null, 'start');
package/lib/base.js CHANGED
@@ -60,6 +60,14 @@ Base.prototype.init = function(reset = false) {
60
60
  this.init_after(reset);
61
61
  }
62
62
 
63
+ Base.prototype.start_after = function() {
64
+
65
+ }
66
+
67
+ Base.prototype.start = function() {
68
+ this.start_after();
69
+ }
70
+
63
71
  /**
64
72
  * 获取文件
65
73
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.9.8",
3
+ "version": "2.9.9",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {