diff --git a/pages/ai-consult/entry.vue b/pages/ai-consult/entry.vue index 22a2352..a3a468c 100644 --- a/pages/ai-consult/entry.vue +++ b/pages/ai-consult/entry.vue @@ -1,4 +1,4 @@ - + diff --git a/pages/archive/edit-archive.vue b/pages/archive/edit-archive.vue index 8b666a1..367c8fa 100644 --- a/pages/archive/edit-archive.vue +++ b/pages/archive/edit-archive.vue @@ -59,6 +59,7 @@ const visible = ref(false); const referenceCustomer = ref(null) const healthTypes = ref([]); const enableHis = ref(false); +const redirectUrl = ref(''); const formData = computed(() => { return { ...customer.value, ...form.value, mobile: account.value?.mobile } @@ -166,6 +167,10 @@ async function addArchive() { set('home-invite-team-info', { teamId: teamId.value }) if (res && res.success) { uni.$emit('reloadTeamCustomers') + if (redirectUrl.value) { + uni.redirectTo({ url: redirectUrl.value }); + return; + } // getTeam(corpId.value, teamId.value, res.data.id); if (healthTypes.value.length) { const nextType = healthTypes.value[0]; @@ -307,6 +312,7 @@ onLoad(options => { customerId.value = options.id || ''; corpUserId.value = options.corpUserId || ''; referenceCustomerId.value = options.referenceCustomerId || ''; + redirectUrl.value = options.redirectUrl || ''; if (referenceCustomerId.value) { getReferenceCustomer(); } @@ -318,4 +324,4 @@ useLoad(options => { }) - \ No newline at end of file +