Compare commits

...

2 Commits

Author SHA1 Message Date
zhangtao 8bcb39045c add mini redirect 2022-10-22 14:53:07 +08:00
zhangtao 83a9ed380e add mini redirect 2022-10-22 14:49:46 +08:00
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@
<link rel="icon" href="/favicon.ico" />
<title><%= title %></title>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
</head>
<body>
<div id="app"></div>

View File

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