Defer admin form runtime loading

This commit is contained in:
2026-06-09 19:10:03 +08:00
parent 0cf20cc1ea
commit fbd726ebdf
6 changed files with 46 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
import { globalShareState } from '@vben-core/shared/global-state';
function initMessageAdapter() {
globalShareState.defineMessage({
copyPreferencesSuccess: (title, content) => {
void import('element-plus/es/components/notification/index').then(
({ ElNotification }) => {
ElNotification({
title,
message: content,
position: 'bottom-right',
duration: 0,
type: 'success',
});
},
);
},
});
}
export { initMessageAdapter };