data中获取数据
export default {
name: 'sec',
data() {
const _this = this //在这里定义一个 _this
return {
totalPeople: 0,
queryParams: _this.totalPeople //在这里就可以拿到totalPeople 的数据
}
}
}
data中获取数据
export default {
name: 'sec',
data() {
const _this = this //在这里定义一个 _this
return {
totalPeople: 0,
queryParams: _this.totalPeople //在这里就可以拿到totalPeople 的数据
}
}
}