From 8b1201626dd2ff410e919da2baec58b0c332303d Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 10 Jan 2025 19:52:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(element-plus-adapter):=20=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E6=B2=A1=E6=B3=A8=E5=86=8Cloading=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=97=B6=E6=89=8D=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts index 55ffbc8c..21da4b41 100644 --- a/packages/design/src/index.ts +++ b/packages/design/src/index.ts @@ -125,7 +125,7 @@ export default { tMagicMessageBox.close = options.messageBox?.close; } - if (options.loading) { + if (options.loading && !app.directive('loading')) { app.directive('loading', options.loading); }