fix 登录成功后跳转错误。

This commit is contained in:
zhonghua1
2025-12-16 23:23:38 +08:00
parent 825c7e5d44
commit 9b8f4e196d

View File

@@ -137,13 +137,13 @@
uni.showToast({ uni.showToast({
title: body.message || '登录成功', title: body.message || '登录成功',
icon: 'none', icon: 'none',
duration: 1500 duration: 800
}) })
// 登录成功后跳转到首页(这里使用项目首页路径,如需调整可改为你期望的页面 // 登录成功后跳转到 tabBar 首页(接待页
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.switchTab({
url: '/pages/list/list' url: '/pages/reception/reception'
}) })
}, 300) }, 300)
}, },