Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Muxi-X/MuXi-Fresh-Fe-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
likeztmy committed Aug 30, 2023
2 parents a730b19 + fa65d68 commit 48aac45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/formM/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const FormForMobile: React.FC = () => {
const [avatar2, setavatar2] = useState('');
const [sex, setsex] = useState(''); //性别
const [avatar, setavatar] = useState<string | undefined>('');
const [stu_number] = useState(''); //学号
const [stu_number,setstu_number] = useState(''); //学号
const [academy, setacademy] = useState(''); //学院
const [major, setmajor] = useState(''); //专业
const [grade, setgrade] = useState(''); //年级
Expand Down Expand Up @@ -250,6 +250,7 @@ const FormForMobile: React.FC = () => {
userdata
.then((data: User) => {
setName(data.data.name);
setstu_number(data.data.student_id);
setnickname(data.data.nickname);
setavatar2(data.data.avatar);
setacademy(data.data.school);
Expand Down
3 changes: 2 additions & 1 deletion src/pages/formW/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const FormForWeb: React.FC = () => {
const [nickname, setnickname] = useState('');
const [avatar2, setavatar2] = useState('');
const [avatar, setavatar] = useState<string | undefined>('');
const [stu_number] = useState(''); //学号
const [stu_number,setstu_number] = useState(''); //学号
const [academy, setacademy] = useState(''); //学院
const [major, setmajor] = useState(''); //专业
const [grade, setgrade] = useState(''); //年级
Expand Down Expand Up @@ -238,6 +238,7 @@ const FormForWeb: React.FC = () => {
userdata
.then((data: User) => {
setName(data.data.name);
setstu_number(data.data.student_id);
setnickname(data.data.nickname);
setavatar2(data.data.avatar);
setacademy(data.data.school);
Expand Down

0 comments on commit 48aac45

Please sign in to comment.