add mini redirect

This commit is contained in:
zhangtao 2022-10-22 14:56:00 +08:00
parent 8bcb39045c
commit 10ad7cdeb2
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ export default {
await data.client.leave()
status.isLeaving = false
status.isJoined = false
wx.miniProgram.redirectTo({ url: '/pages/tool/tool' })
wx.miniProgram.switchTab({ url: '/pages/tool/tool' })
} catch (error) {
status.isLeaving = false
console.error('leave room error', error)