18 lines
976 B
JavaScript
18 lines
976 B
JavaScript
import { storeToRefs } from "pinia";
|
|
import userStore from '@/store/user';
|
|
|
|
export default function useUser() {
|
|
const store = userStore();
|
|
|
|
const { drugStore, familyProfile, logined, myProfile, patientList, storeId, userInfo } = storeToRefs(store);
|
|
const { getAuthCode, getFamilyProfile, getStore, loadPatientList, login, loginout, getProfileData } = store;
|
|
return {
|
|
drugStore, familyProfile, logined, myProfile, patientList, storeId, userInfo,
|
|
getAuthCode, getFamilyProfile, getStore, loadPatientList, login, loginout, getProfileData
|
|
};
|
|
// const { userInfo, logined, maskName, maskMobile, maskCertNo, cards, card, idCardInfo, storeId, drugStore, getFamilyProfile, familyProfile } = storeToRefs(store);
|
|
// const { login, loginout, getAuthCode, getStore } = store;
|
|
// return { userInfo, logined, login, loginout, maskName, maskMobile, maskCertNo, cards, card, getAuthCode, idCardInfo, storeId, getStore, drugStore, getFamilyProfile, familyProfile };
|
|
|
|
}
|