缓存修改,里面的时间切换不做缓存

This commit is contained in:
stt
2025-11-14 13:24:21 +08:00
parent cd565c03ca
commit ea6aed9b99
2 changed files with 14 additions and 30 deletions

View File

@@ -103,9 +103,9 @@ const props = withDefaults(defineProps<Props>(), {
// 处理 DatePicker 值变化事件
const handleDatePickerChange = (value: any) => {
// 将值缓存到 timeCache
if (value) {
timeCacheStore.setCache(route.path, value.interval, value.timeValue)
}
// if (value) {
// timeCacheStore.setCache(route.path, value.interval, value.timeValue)
// }
// 将 datePicker 的变化传递给父组件
emit('selectChange', true, tableHeader.value.offsetHeight, value)