时间组件缓存提取出来

This commit is contained in:
stt
2025-11-06 14:55:56 +08:00
parent d16d262d1a
commit a5f3571906
4 changed files with 89 additions and 52 deletions

View File

@@ -2,10 +2,11 @@
import { defineStore } from 'pinia'
import { RouteLocationNormalizedLoaded } from 'vue-router'
// 时间组件的缓存值 用于驾驶舱放大的时候和内部的时间组件同步
interface TimeCacheState {
cache: Map<string, {
interval: number | undefined
timeValue: any
interval: number | undefined // 时间组件的月份、年份、时间、时间格式的缓存值
timeValue: any // 时间组件的值
}>
}