Compare commits

..

2 Commits

Author SHA1 Message Date
huxuejian
a66bfce901 Merge branch 'dev-wdb' of http://175.27.226.205:3000/huxuejian/ykt-wxapp into dev-wdb 2026-01-30 10:26:13 +08:00
huxuejian
ca5ad25854 Update team.js 2026-01-30 10:26:11 +08:00

View File

@ -21,7 +21,7 @@ export default defineStore("teamStore", () => {
async function getTeams() { async function getTeams() {
const corpId = account.value?.corpId; const corpId = account.value?.corpId;
const mateId = doctorInfo.value?.corpId; const mateId = doctorInfo.value?.userid;
if (!corpId || !mateId) return; if (!corpId || !mateId) return;
const res = await api('getJoinedTeams', { corpId, mateId }); const res = await api('getJoinedTeams', { corpId, mateId });
teams.value = res && Array.isArray(res.data) ? res.data : []; teams.value = res && Array.isArray(res.data) ? res.data : [];