You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functioncallHook(vm,hook){// #7573 disable dep collection when invoking lifecycle hookspushTarget();varhandlers=vm.$options[hook];varinfo=hook+' hook';if(handlers){for(vari=0,j=handlers.length;i<j;i++){invokeWithErrorHandling(handlers[i],vm,null,vm,info);}}if(vm._hasHookEvent){vm.$emit('hook:'+hook);}popTarget();}
The text was updated successfully, but these errors were encountered:
siam-ese
changed the title
vue 生命周期 hook event
[vue]生命周期 hook event
Jan 4, 2021
vue lifecycle hook event
可以对组件监听 hook:[lifecycle-name] 的事件,在 callhook 方法调用完成后,会传播事件
The text was updated successfully, but these errors were encountered: