Browse Source

修改返回房间

tangning 3 năm trước cách đây
mục cha
commit
3fd8ac61a4
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      socket.js

+ 1 - 2
socket.js

@@ -512,9 +512,8 @@ export default {
             complete: () => {
             complete: () => {
               setTimeout(() => {
               setTimeout(() => {
                 this.socketStop();
                 this.socketStop();
-                wx.redirectTo({
+                wx.switchTab({
                   url: '/pages/index/index',
                   url: '/pages/index/index',
-
                 });
                 });
               }, 1000)
               }, 1000)