提交 139b730e 编写于 作者: B big_sun_962464

Fri Jul 12 15:39:00 CST 2024 inscode

上级 b7cf1fb3
...@@ -61,10 +61,16 @@ onUpdated(() => { ...@@ -61,10 +61,16 @@ onUpdated(() => {
}) })
onActivated(() => { onActivated(() => {
/**
* 注册一个回调函数,若组件实例是 <KeepAlive> 缓存树的一部分,当组件被插入到 DOM 中时调用
*/
console.log(h2Ref.value.innerHTML) console.log(h2Ref.value.innerHTML)
debugger debugger
}) })
onDeactivated(() => { onDeactivated(() => {
/**
* 注册一个回调函数,若组件实例是 <KeepAlive> 缓存树的一部分,当组件从 DOM 中被移除时调用
*/
console.log(h2Ref.value.innerHTML) console.log(h2Ref.value.innerHTML)
debugger debugger
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册