浏览代码

修改隐私协议

zs 1 年之前
父节点
当前提交
b7a6171d0e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      pages/register/index.vue

+ 2 - 3
pages/register/index.vue

@@ -89,7 +89,7 @@
 				streetList: [],
 				commList: [],
 				// 用户协议
-				agree: true,
+				agree: false,
 			}
 		},
 		async onLoad() {
@@ -157,8 +157,7 @@
 			// 同意隐私协议
 			changeAgree() {
 				const that = this;
-				let agree = true;
-				if (that.agree) agree = false;
+				let agree = !that.agree
 				that.$set(that, `agree`, agree);
 			},
 			// 查看隐私协议