Files
ai-agent-admin/web/apps/web-ele/src/adapter/message.ts
T
2026-06-09 19:10:03 +08:00

22 lines
541 B
TypeScript

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