data() {
return {
maxTs: 1672502400000
pickerOptions: {
shortcuts: [{
{
text: '下一周',
onClick(picker) {
var that = this;
console.log(this.maxTs, '-------------------------------------')
const end = that.maxTs + 10080 * 60000; // that.maxTs 是我自定义的终止日期 , 也是我后台第一次获取数据的终止日期
const start = that.maxTs;
start.setTime(start);
picker.$emit('pick', [start, end]);
}
}, ]
},
但是 打印出来的 结果是 undefined,为什么 要怎么做才能 使用data中自定义的初始值, 或者使用 后端返回的终止日期值?
