fix:时间选择器 历史记录优化

This commit is contained in:
zhangyu
2022-04-25 10:07:10 +08:00
parent 97570affad
commit f1f7d83ee7
3 changed files with 12 additions and 1 deletions

View File

@@ -577,6 +577,13 @@ export default {
}
}
}
},
sign (n) {
if (n) {
this.rangeHistory = localStorage.getItem('date-range-history' + this.sign)
? JSON.parse(localStorage.getItem('date-range-history' + this.sign))
: []
}
}
}
}