yangjie #45

Merged
yangqiang merged 19 commits from yangjie into master 2024-12-18 13:52:10 +08:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 9f154c558e - Show all commits

View File

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