From 43af31998b7251ab5819bfb7f889d73b8a5c1e3d Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:25:44 +0800
Subject: [PATCH] 56
---
src/stores/userInfo.ts | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index a40a6f6..467892d 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -6,13 +6,17 @@
const info = ref({
openid:'',
headimgurl:'',
- nickname:''
+ nickname:'',
})
- function setUserInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) {
+ const patient=ref({})
+ function setInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) {
info.value.openid=userInfo.openid
info.value.headimgurl=userInfo.headimgurl
info.value.nickname=userInfo.nickname
}
+ function setPatient(info:object) {
+ patient.value=info
+ }
- return { info, setUserInfo }
+ return { info,patient,setPatient, setInfo }
})
--
Gitblit v1.8.0