فهرست منبع

fix(phoneLogin): 延时跳转

Tim_Walker 2 سال پیش
والد
کامیت
f0a075380f
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/pages/login/phoneLogin.vue

+ 3 - 1
src/pages/login/phoneLogin.vue

@@ -130,7 +130,9 @@ export default {
             uni.$u.toast('登录成功');
             this.$store.commit('SET_ACCESS_TOKEN', res.access_token);
             this.$store.commit('SET_REFRESH_TOKEN', res.refresh_token);
-            this.$Router.pushTab('/pages/home/index');
+            setTimeout(() => {
+              this.$Router.pushTab('/pages/home/index');
+            }, 1500);
           }
         })
         .catch(err => {