ソースを参照

fix(bugs): 提出跳到首页

tangning 3 年 前
コミット
f98130e7da
1 ファイル変更6 行追加6 行削除
  1. 6 6
      socket.js

+ 6 - 6
socket.js

@@ -511,14 +511,14 @@ export default {
             title: '您已被踢出房间!',
             icon: 'none',
             complete: () => {
-              setTimeout(() => {
-                that.socketStop();
-                wx.switchTab({
-                  url: '/pages/index/index',
-                })
-              }, 1000)
             }
           })
+          setTimeout(() => {
+            that.socketStop();
+            wx.switchTab({
+              url: '/pages/index/index',
+            })
+          }, 1000)
         }
       }
     });