NEZ-1959 fix:在不同的时间格式下查看其他时间格式下使用过的最近时间显示范围时内容显示有误
This commit is contained in:
@@ -92,9 +92,9 @@
|
||||
class="date-range-history-item"
|
||||
@click="historyChange(item)"
|
||||
>
|
||||
{{ timeFormate(item.start) }}
|
||||
{{ momentTz(item.start) }}
|
||||
{{ $t("dashboard.panel.to") }}
|
||||
{{ timeFormate(item.end) }}
|
||||
{{ momentTz(item.end) }}
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@@ -340,8 +340,8 @@ export default {
|
||||
}
|
||||
this.isCustom = true
|
||||
this.rangeHistory.unshift({
|
||||
start: item[0],
|
||||
end: item[1]
|
||||
start: this.momentStrToTimestamp(item[0]),
|
||||
end: this.momentStrToTimestamp(item[1])
|
||||
})
|
||||
localStorage.setItem(
|
||||
'date-range-history' + this.sign,
|
||||
|
||||
Reference in New Issue
Block a user