From bdf4c4bc13b6dff3c2b9893e9d5e526e5a9c7e41 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Fri, 4 Sep 2026 16:52:36 +0800 Subject: [PATCH] Update fill.vue --- pages/survey/fill.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/survey/fill.vue b/pages/survey/fill.vue index 25a4b37..4c1a096 100644 --- a/pages/survey/fill.vue +++ b/pages/survey/fill.vue @@ -109,7 +109,12 @@ async function submit({ list, score }) { }) if (res && res.success) { await toast('提亀成功'); - uni.navigateBack(); + const pages = getCurrentPages(); + if (pages.length > 1) { + uni.navigateBack(); + } else { + uni.switchTab({ url: '/pages/home/home' }) + } } }