fix: 去除无用代码

This commit is contained in:
@changcode
2021-12-31 10:10:39 +08:00
parent 3f4c65fc67
commit f297983554
3 changed files with 10 additions and 21 deletions

View File

@@ -80,7 +80,8 @@ export default {
theme: {
themeColor: ''
},
timer: ''
timer: '',
pickTimer: localStorage.getItem('nz-default-dateFormat') ? localStorage.getItem('nz-default-dateFormat') : 'yyyy-MM-dd hh:mm:ss',
}
},
created () {
@@ -135,8 +136,8 @@ export default {
if (timeRange && timeRange.length < 2) {
return []
}
const startTime = bus.timeFormate(timeRange[0], 'yyyy-MM-dd hh:mm:ss')
const endTime = bus.timeFormate(timeRange[1], 'yyyy-MM-dd hh:mm:ss')
const startTime = bus.timeFormate(timeRange[0], this.pickTimer)
const endTime = bus.timeFormate(timeRange[1], this.pickTimer)
return [startTime, endTime]
},
dateChange (time) {