feat: 优化界面显示,对deck添加编辑功能
This commit is contained in:
22
src/hooks/message.tsx
Normal file
22
src/hooks/message.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { App } from 'antd';
|
||||
|
||||
export const useMessage = () => {
|
||||
const { message: antMessage, modal, notification } = App.useApp();
|
||||
return {
|
||||
success: antMessage.success,
|
||||
error: antMessage.error,
|
||||
warning: antMessage.warning,
|
||||
info: antMessage.info,
|
||||
loading: antMessage.loading,
|
||||
open: antMessage.open,
|
||||
destroy: antMessage.destroy,
|
||||
modal: modal,
|
||||
notification: notification,
|
||||
message: antMessage,
|
||||
com: (
|
||||
<>
|
||||
<App />
|
||||
</>
|
||||
),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user