watch: {
lists(val) {
if (!val[val.length - 1].name) {
this.anniubd = true;
} else {
this.anniubd = false;
}
}
},
methods: {
dijClick() {
var cps = {};
this.lists.push(cps);
//console.log(cps,1)
},
huoqu(event) {
console.log(event.target.value);
if (event.target.value == null) {
this.anniubd = true;
} else {
this.anniubd = false;
}
},}
vue每填写一次数据点击按钮增加一次
最新推荐文章于 2023-08-15 09:15:38 发布