Browse Source

修改bug

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