fix 登录成功后跳转错误。
This commit is contained in:
@@ -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)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user