diff --git a/store/team.js b/store/team.js index c1d1a82..e3c39b9 100644 --- a/store/team.js +++ b/store/team.js @@ -21,7 +21,7 @@ export default defineStore("teamStore", () => { async function getTeams() { const corpId = account.value?.corpId; - const mateId = doctorInfo.value?.corpId; + const mateId = doctorInfo.value?.userid; if (!corpId || !mateId) return; const res = await api('getJoinedTeams', { corpId, mateId }); teams.value = res && Array.isArray(res.data) ? res.data : [];