From b86ac8f3c5765c9a7537bfa7f02a40f5061b96ab Mon Sep 17 00:00:00 2001 From: xiaofan <143837928+xiaofan57@users.noreply.github.com> Date: Sat, 25 Nov 2023 21:12:40 +0800 Subject: [PATCH] fix(client): run contentUpdatedCallbacks when Content is unmounted (#3253) --- src/client/app/components/Content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app/components/Content.ts b/src/client/app/components/Content.ts index 9e8b0921..382de68b 100644 --- a/src/client/app/components/Content.ts +++ b/src/client/app/components/Content.ts @@ -20,7 +20,8 @@ export const Content = defineComponent({ route.component ? h(route.component, { onVnodeMounted: runCbs, - onVnodeUpdated: runCbs + onVnodeUpdated: runCbs, + onVnodeUnmounted: runCbs }) : '404 Page Not Found' ]