fix: 修复panel时间选择器位置问题

This commit is contained in:
chenjinsong
2022-04-25 17:16:12 +08:00
parent d5b521035e
commit 089ecf86a2

View File

@@ -77,7 +77,6 @@ export default {
detailTabs: [],
detailChartList: [],
currentTab: '',
scrolledOut: false,
isCryptocurrency: false, // 是否为挖矿列表
wholeScreenRouterMapping
}
@@ -109,9 +108,11 @@ export default {
const timeFilter = ref({ startTime, endTime, dateRangeValue })
const { currentRoute } = useRouter()
const currentPath = currentRoute.value.path
const scrolledOut = ref(!(Object.keys(wholeScreenRouterMapping).some(k => wholeScreenRouterMapping[k] === currentPath)))
return {
currentPath: currentRoute.value.path,
scrolledOut,
currentPath,
panelType,
panel,
timeFilter,