diff --git a/src/components/WangEidtor/readme.md b/src/components/WangEidtor/readme.md new file mode 100644 index 0000000..bc0cb97 --- /dev/null +++ b/src/components/WangEidtor/readme.md @@ -0,0 +1 @@ +如果引用时在 modal 中 , 渲染报错需要再 modal 组件中添加 forceRender destroyOnClose 属性 diff --git a/src/pages/friendLinkManage/friendLinkCategory.tsx b/src/pages/friendLinkManage/friendLinkCategory.tsx index 7dce139..89a4d8f 100644 --- a/src/pages/friendLinkManage/friendLinkCategory.tsx +++ b/src/pages/friendLinkManage/friendLinkCategory.tsx @@ -5,6 +5,7 @@ import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, EditOutlined } import { getCategoryList, getAllCategories, addCategory, updateCategory, deleteCategory,getCategoryDetail } from '@/servers/api/friendLink'; import { useFriendLinkDict } from '@/dicts/friendLinkDict'; import styles from './friendLinkManage.less'; +import uiconfig from '@/uiconfig'; const { Option } = Select; const { TextArea } = Input; @@ -241,6 +242,7 @@ const FriendLinkCategory: React.FC = () => { : intl.formatMessage({ id: 'friendLink.category.form.title.add' }) } open={modalVisible} + width={uiconfig.Modal.width} onOk={handleModalSubmit} onCancel={() => setModalVisible(false)} destroyOnClose diff --git a/src/pages/friendLinkManage/friendLinkManage.tsx b/src/pages/friendLinkManage/friendLinkManage.tsx index 402c4d7..2ba2caa 100644 --- a/src/pages/friendLinkManage/friendLinkManage.tsx +++ b/src/pages/friendLinkManage/friendLinkManage.tsx @@ -19,6 +19,7 @@ import { } from '@/servers/api/friendLink'; import { LinkStatusMap } from '@/dicts/friendLinkDict'; import FileUpload from '@/components/FileUpload'; +import uiconfig from '@/uiconfig'; import styles from './friendLinkManage.less'; // 搜索参数类型 interface SearchParams { @@ -469,6 +470,7 @@ const FriendLinkManage: React.FC = () => { } open={modalVisible} onOk={handleModalSubmit} + width={uiconfig.Modal.width} onCancel={() => setModalVisible(false)} destroyOnClose > diff --git a/src/pages/helpManage/helpManage.tsx b/src/pages/helpManage/helpManage.tsx index c48b53d..f3ebc7b 100644 --- a/src/pages/helpManage/helpManage.tsx +++ b/src/pages/helpManage/helpManage.tsx @@ -7,6 +7,7 @@ import { ExclamationCircleOutlined, SearchOutlined, } from '@ant-design/icons'; +import uiconfig from '@/uiconfig'; import styles from './helpManage.less'; // 引入API import { @@ -525,7 +526,7 @@ const HelpManage: React.FC = () => { open={modalVisible} onCancel={handleModalCancel} footer={null} - width={800} + width={uiconfig.Modal.width} destroyOnClose maskClosable={false} > diff --git a/src/pages/userQuestionManage/QuestionModal.tsx b/src/pages/userQuestionManage/QuestionModal.tsx index 023f329..afe0200 100644 --- a/src/pages/userQuestionManage/QuestionModal.tsx +++ b/src/pages/userQuestionManage/QuestionModal.tsx @@ -17,6 +17,7 @@ import { TopStatusColor } from '@/dicts/userQuestionDict'; import type { DictItem } from '@/servers/api/dicts'; +import uiconfig from '@/uiconfig'; const { TextArea } = Input; @@ -362,7 +363,7 @@ const QuestionModal: React.FC = ({ title={getModalTitle()} open={open} onCancel={onCancel} - width={800} + width={uiconfig.Modal.width} footer={renderFooter()} maskClosable={false} destroyOnClose