删除监测点列表的缓存

This commit is contained in:
stt
2025-11-24 15:12:24 +08:00
parent 704f735744
commit e603ba9f8c
3 changed files with 36 additions and 35 deletions

View File

@@ -71,7 +71,6 @@ import { queryActivatePage, queryByPagePath } from '@/api/system-boot/csstatisti
import RoutingConfig from '@/views/pqs/cockpit/homePage/components/routingConfig.vue'
import { useRouter, useRoute } from 'vue-router'
import { useTimeCacheStore } from '@/stores/timeCache'
import {cslineList} from '@/api/harmonic-boot/cockpit/cockpit'
const { push } = useRouter()
const datePickerRef = ref()
const router = useRouter()
@@ -247,17 +246,10 @@ const handleDatePickerChange = (value: any) => {
}
}
// 监测点列表
const initCSlineList = async () => {
const res = await cslineList({})
window.localStorage.setItem('lineIdList', JSON.stringify(res.data))
}
// 生命周期钩子
onMounted(() => {
// initRowHeight()
fetchLayoutData()
initCSlineList()
// 添加窗口大小变化监听器
window.addEventListener('resize', handleResize)