<
input
type=
"text"
maxlength=
"11"
placeholder=
"请输入联系人电话"
v-model="form.phone" />
//这样的输入框,绑定的是data中的form对象上的phone字段。
在mounted钩子函数里边写:
this.form.phone
=
'1888888888';//这样在页面上时候不会随着输入框值改变而改变。解决方法如下:
this.
$set(
this.form,
"phone",
this.$route.query.mobile)
//或者绑定到data里边的一个字符串,也是可以解决的