修改类型

This commit is contained in:
yj 2024-12-13 14:33:25 +08:00
parent 20e25fa96d
commit 9f154c558e
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ const Index: React.FC = () => {
const [subjectList, setSubjectList] = useState<any>([]);
const [timeData, setTimeData] = useState<any>([]);
const [isCreateRoom, setIsCreateRoom] = useState<boolean>(false);
const [allowAnonymous, setAllowAnonymous] = useState(1);
const [allowAnonymous, setAllowAnonymous] = useState(true);
const [baseImage, setBaseImage] = useState('');
const userInfo = JSON.parse(storage.getItem('user') as string)
useEffect(() => {
@ -468,8 +468,8 @@ const Index: React.FC = () => {
<Radio.Group onChange={(e) => {
setAllowAnonymous(e.target.value);
}} value={allowAnonymous}>
<Radio value={1}></Radio>
<Radio value={0}></Radio>
<Radio value={true}></Radio>
<Radio value={false}></Radio>
</Radio.Group>
</div>
</div>