import React, { useState } from 'react'; import router from 'umi/router'; import { Button, InputItem, TextareaItem } from 'antd-mobile'; import styles from './index.less'; const Index = ({ type = 3, no, total, title, analysis, rightAnswer }) => { const [isShowAnswer, setIsShowAnswer] = useState(false); const showAnswer = () => { setIsShowAnswer(true); }; const goSubmitAnalysis = () => { router.push('/exam/question/submit/analysis/0'); }; return (