mm_os 1.5.1 → 1.5.3
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 +1 -1
- package/lib/app.js +16 -0
- package/package.json +1 -1
package/index.js
CHANGED
package/lib/app.js
CHANGED
|
@@ -63,6 +63,22 @@ App.prototype.initApp = async function() {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* 运行应用
|
|
68
|
+
*/
|
|
69
|
+
App.prototype.runApp = async function() {
|
|
70
|
+
for (var k in this.dict) {
|
|
71
|
+
var o = this.dict[k];
|
|
72
|
+
if (o.state) {
|
|
73
|
+
try {
|
|
74
|
+
await o.run('start');
|
|
75
|
+
} catch (e) {
|
|
76
|
+
$.log.error("初始化应用错误", e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
66
82
|
/**
|
|
67
83
|
* 启动应用
|
|
68
84
|
*/
|