From f4e22cdf2fb9d1796dabd6e4bafd8e8601822cdd Mon Sep 17 00:00:00 2001 From: hupeng Date: Tue, 11 Mar 2025 09:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/components/pages/login/logout.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/login/logout.vue b/yshop-drink-uniapp-vue3/pages/components/pages/login/logout.vue index 147ff52..722d91a 100644 --- a/yshop-drink-uniapp-vue3/pages/components/pages/login/logout.vue +++ b/yshop-drink-uniapp-vue3/pages/components/pages/login/logout.vue @@ -36,8 +36,10 @@ const logout = () => { type: 'success' }); setTimeout(function() { - uni.navigateBack(); - }, 2000); + uni.redirectTo({ + url: '/pages/components/pages/login/login', + }) + }, 1000); }