使用接口

This commit is contained in:
xianyi
2025-11-25 18:16:45 +08:00
parent 2571d52940
commit f3bea31e91
11 changed files with 439 additions and 582 deletions

View File

@@ -28,6 +28,8 @@ const U2: React.FC = () => {
.then((res) => {
if (res.Status === 200) {
setPatientInfo(res.Data);
localStorage.setItem("name", res.Data.name);
localStorage.setItem("gender", res.Data.gender_name);
} else {
alert(`获取用户信息失败: ${res.Message}`);
}