import { getThisWeekRange} from '@/utils/formatTime.js' initTimeData(){ this.datatime= ''; this.datatime= getThisWeekRange(30);//启用了 }, 1、在mounted方法中,find前面调用方法 this.initTimeData(); this.find(1) 2、在 reset 方法中调用 this.initTimeData();//重置时间 this.find()