@@ -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) |