From 78c5f81651c061c7889c5d289f8428f015ca20c9 Mon Sep 17 00:00:00 2001 From: xiaoming <1923740402@qq.com> Date: Sun, 7 Jan 2024 16:02:39 +0800 Subject: [PATCH] fix(components): [loading] complete destroy vLoading directive unmounted (#15393) --- packages/components/loading/src/directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/loading/src/directive.ts b/packages/components/loading/src/directive.ts index def393bccd..cb08d94096 100644 --- a/packages/components/loading/src/directive.ts +++ b/packages/components/loading/src/directive.ts @@ -91,5 +91,6 @@ export const vLoading: Directive = { }, unmounted(el) { el[INSTANCE_KEY]?.instance.close() + el[INSTANCE_KEY] = null }, }