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); }