diff --git a/pages/archive/edit-archive.vue b/pages/archive/edit-archive.vue index 9685b53..f207d63 100644 --- a/pages/archive/edit-archive.vue +++ b/pages/archive/edit-archive.vue @@ -28,6 +28,7 @@ import useAccount from '@/store/account'; import api from '@/utils/api'; import { toast, confirm as uniConfirm } from '@/utils/widget'; import validate from '@/utils/validate'; +import { set } from "@/utils/cache"; import ButtonFooter from '@/components/button-footer.vue'; import EmptyData from '@/components/empty-data.vue'; @@ -160,6 +161,7 @@ async function addArchive() { } loading.value = false; const res = await api('addCustomer', { params }); + set('home-invite-team-info', { teamId: teamId.value }) if (res && res.success) { uni.$emit('reloadTeamCustomers') getTeam(corpId.value, teamId.value, res.data.id); @@ -289,12 +291,12 @@ async function getTeam(corpId, teamId, customerId) { const nextTypes = types.slice(1); const url = `/pages/health/record?type=${nextType}&teamId=${teamId}&corpId=${corpId}&customerId=${customerId}&nextTypes=${nextTypes.join(',')}&source=afterArchive` uni.redirectTo({ url }); + return } - } else { - uni.redirectTo({ - url: `/pages/archive/archive-result?corpId=${corpId}&teamId=${teamId}&customerId=${customerId}` - }) } + uni.redirectTo({ + url: `/pages/archive/archive-result?corpId=${corpId}&teamId=${teamId}&customerId=${customerId}` + }) }