<template> <child-component @hook:updated="onUpdated"> </template> 采用 @hook:生命周期名称 的方式,实现父级监听子组件的生命周期。