data() {
return {
clickContent:null,
content:""
}
};
},
if (this.clickContent== null) {
console.log("第一次点击");
//请求接口
} else {
if (this.clickContent != this.content) {
console.log("点击的不同");
//请求接口
} else {
console.log("点击的相同");
}
}
this.clickContent= this.content;