修改查询统计数据
This commit is contained in:
@@ -83,7 +83,6 @@ const shortcuts = [
|
||||
// 计算过滤后的 timeOptions
|
||||
const filteredTimeOptions = computed(() => {
|
||||
|
||||
// console.log("🚀 ~ props.timeKeyList:", props.timeKeyList)
|
||||
if (props.timeKeyList.length > 0 && !props.timeKeyList.includes(interval.value.toString())) {
|
||||
interval.value = Number(props.timeKeyList[0])
|
||||
|
||||
@@ -91,6 +90,7 @@ const filteredTimeOptions = computed(() => {
|
||||
if (!props.timeKeyList || props.timeKeyList.length === 0) {
|
||||
return timeOptions.value
|
||||
}
|
||||
nowTime()
|
||||
|
||||
return timeOptions.value.filter((option: any) => props.timeKeyList.includes(option.value.toString()))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user