fix(element-plus-adapter): 只有当前没注册loading指令时才注册

This commit is contained in:
roymondchen 2025-01-10 19:52:32 +08:00
parent ab7df6c21e
commit 8b1201626d

View File

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