Browse Source

修改bug

csx 5 years ago
parent
commit
cab265ae41
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/pages/home/login.vue

+ 7 - 6
src/pages/home/login.vue View File

@@ -56,8 +56,7 @@
56 56
             <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
57 57
             <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
58 58
           <!--</div>-->
59
-            <span  class="agreeText" @click="agree()">《隐私服务协议》</span>
60
-
59
+            <span  class="agreeText" @click.native="agree">《隐私服务协议》</span>
61 60
 
62 61
         </div>
63 62
       </div>
@@ -135,7 +134,7 @@ export default {
135 134
       });
136 135
     },
137 136
     to: function() {
138
-      this.$router.push({ path: "/privacy" });
137
+      this.$router.push({ path: "/forgetPassword" });
139 138
     },
140 139
     submitForm() {
141 140
       const self = this;
@@ -219,9 +218,11 @@ export default {
219 218
     //清除cookie
220 219
     clearCookie: function() {
221 220
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
222
-    }, agree() {
223
-      this.$router.push({ path: "/privacy" });
224
-
221
+    },
222
+    agree() {
223
+      this.$nextTick(() => {
224
+        this.$router.push({ path: "/privacy" });
225
+      })
225 226
     }
226 227
   }
227 228
 };