diff --git a/src/platforms/mp-weixin/runtime/index.js b/src/platforms/mp-weixin/runtime/index.js index 3c4204ae8dfb7dd947094f42101249cacdc156ec..ed11b5f932f6f793f67b25a1c33f8a906c649514 100644 --- a/src/platforms/mp-weixin/runtime/index.js +++ b/src/platforms/mp-weixin/runtime/index.js @@ -28,7 +28,7 @@ function initTriggerEvent (mpInstance) { function initHook (name, options, isComponent) { if (__PLATFORM__ === 'mp-toutiao') { // fix by Lxh 字节自定义组件Component构造器文档上写有created,但是实测只触发了lifetimes上的created - isComponent && (options = options.lifetimes) + isComponent && options.lifetimes && options.lifetimes[name] && (options = options.lifetimes) } const oldHook = options[name] if (!oldHook) {