修复less导入污染全局
This commit is contained in:
@ -4,6 +4,7 @@ import { useIntl } from 'umi';
|
||||
import WangEditor from '@/components/WangEidtor/WangEidtor';
|
||||
import { TopStatus, EnglishSetting, categoryOptions } from '@/dicts/helpManageDict';
|
||||
import { addHelp, updateHelp, getHelpDetail } from '@/servers/api/help';
|
||||
import styles from './helpManage.less';
|
||||
|
||||
const { TabPane } = Tabs;
|
||||
const { Option } = Select;
|
||||
@ -127,7 +128,7 @@ const HelpManageForm: React.FC<HelpManageFormProps> = ({ id, isEdit, onSuccess }
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.helpForm}>
|
||||
<Form form={form} layout="vertical" name="helpForm" preserve={false}>
|
||||
<Form.Item name="isTop" label={intl.formatMessage({ id: 'helpManage.form.isTop' })} valuePropName="checked">
|
||||
<Switch />
|
||||
@ -214,7 +215,7 @@ const HelpManageForm: React.FC<HelpManageFormProps> = ({ id, isEdit, onSuccess }
|
||||
</TabPane>
|
||||
</Tabs>
|
||||
</Form>
|
||||
<div style={{ textAlign: 'right', marginTop: '20px' }}>
|
||||
<div className={styles.formActions}>
|
||||
<Button onClick={() => onSuccess()}>
|
||||
{intl.formatMessage({ id: 'helpManage.cancel' })}
|
||||
</Button>
|
||||
@ -222,7 +223,6 @@ const HelpManageForm: React.FC<HelpManageFormProps> = ({ id, isEdit, onSuccess }
|
||||
type="primary"
|
||||
loading={loading}
|
||||
onClick={handleSubmit}
|
||||
style={{ marginLeft: '8px' }}
|
||||
>
|
||||
{intl.formatMessage({ id: 'helpManage.submit' })}
|
||||
</Button>
|
||||
|
Reference in New Issue
Block a user