| | |
| | | const [coverImg, setCoverImg] = useState(''); |
| | | const pathname = history.location.pathname; |
| | | const isCreate = pathname.endsWith('/create'); |
| | | const listPagePath = '/live/course/health-popularization'; |
| | | const listPagePath = '/live/promotion/health-popularization'; |
| | | const recordId = useMemo(() => { |
| | | if (isCreate) { |
| | | return ''; |
| | |
| | | return ( |
| | | <div className="health-popularization-page"> |
| | | <div className="health-popularization-page__panel"> |
| | | <div className="health-popularization-page__title">{isCreate ? '添加健康科普' : '编辑健康科普'}</div> |
| | | <div className="health-popularization-page__title">{isCreate ? '添加健康知识' : '编辑健康知识'}</div> |
| | | <Form form={form} layout="vertical" className="health-popularization-edit-form"> |
| | | <div className="health-popularization-edit-form__section-title">信息</div> |
| | | <div className="health-popularization-edit-form__grid"> |