Browse Source

add mini redirect

master
zhangtao 1 year ago
parent
commit
83a9ed380e
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      index.html
  2. +1
    -0
      src/views/home/index.vue

+ 2
- 0
index.html 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>

+ 1
- 0
src/views/home/index.vue 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)

Loading…
Cancel
Save