From d268a8f040e229087d8a616c2e98e4180f04dfbf Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:30:51 +0800
Subject: [PATCH] up
---
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