Ver código fonte

feat(KIP-6765): H5 登录成功之后,没有返回到首页

John-Hong 2 anos atrás
pai
commit
451b42ccfd
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/pages/login/login.vue

+ 4 - 4
src/pages/login/login.vue

@@ -421,10 +421,10 @@ export default {
               _this.saveAgreementAction();
               _this.queryMember();
               // 返回首页
-              _this.$router.replace({ path: 'home' });
-              setTimeout(() => {
-                window.location.reload();
-              }, 100);
+              _this.$router.push({ path: 'home' });
+              // setTimeout(() => {
+              //   window.location.reload();
+              // }, 700);
             } else {
               log.warn(`手机号登录请求成功: 未获取到授权信息`);
               uni.showModal({