Update team.js
This commit is contained in:
parent
e639ddc3a2
commit
ca5ad25854
@ -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 : [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user