1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| 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()
|
|