提交 7065e15b 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

feat: 调整 onLaunch 触发时机

上级 e6a86208
......@@ -41,6 +41,11 @@ export function getApp({ allowDefault = false } = {}) {
)
}
/**
* registerApp
* @param appVm
* @param nativeApp
*/
export function registerApp(appVm: ComponentPublicInstance, nativeApp: IApp) {
if (__DEV__) {
console.log(formatLog('registerApp'))
......@@ -75,9 +80,10 @@ export function registerApp(appVm: ComponentPublicInstance, nativeApp: IApp) {
// initTabBar()
initGlobalEvent(nativeApp)
// initKeyboardEvent()
initSubscribeHandlers()
// onLaunch 触发时机 在 WebviewReady 之前
initAppLaunch(appVm)
initSubscribeHandlers()
// // 10s后清理临时文件
// setTimeout(clearTempFile, 10000)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册