瀏覽代碼

修改bug

csx 4 年之前
父節點
當前提交
cab265ae41
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      src/pages/home/login.vue

+ 7 - 6
src/pages/home/login.vue 查看文件

@@ -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
 };