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 | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index 1e043bc..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:{openud:string, headimgurl:string,nickname:string}) {
- info.value.openid=userInfo.openud
+ 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