defaultDate() {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)//7就是七天 14就是两个周 可改
//将值设置给插件绑定的数据
this.timeRange.push(end);
this.timeRange.unshift(start);
},
最后在created中调用
defaultDate() {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)//7就是七天 14就是两个周 可改
//将值设置给插件绑定的数据
this.timeRange.push(end);
this.timeRange.unshift(start);
},
最后在created中调用