From ca657d1b8c991145e8bb6e49ee20a0992c2a8976 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Tue, 29 Oct 2024 14:46:21 +0800 Subject: [PATCH] fix(guid): fix guid hide error --- packages/renderless/src/guide/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/renderless/src/guide/index.ts b/packages/renderless/src/guide/index.ts index a90486d3ee..e4d01d0160 100644 --- a/packages/renderless/src/guide/index.ts +++ b/packages/renderless/src/guide/index.ts @@ -63,7 +63,7 @@ export const mounted = } export const beforeUnmount = (state) => () => { - state.tour.hide() + state?.tour?.hide() } const getItemCopy = (props, tour, result) => {