Commit e0e4c9cbcd9158717924de92a61a1860b433d428

Authored by ww
1 parent a3aa9060

fix: 修复数据看板组件历史趋势被隐藏

... ... @@ -18,6 +18,7 @@
18 18 import { DataComponentRecord } from '/@/api/dataBoard/model';
19 19 import { computed } from 'vue';
20 20 import { useGetComponentConfig } from '../../../packages/hook/useGetComponetConfig';
  21 + import { isBoolean } from '/@/utils/is';
21 22
22 23 const props = defineProps<{
23 24 sourceInfo: WidgetDataType;
... ... @@ -83,7 +84,8 @@
83 84 const hasTrendQueryIcon = computed(() => {
84 85 const frontId = props.sourceInfo.frontId;
85 86 const config = useGetComponentConfig(frontId);
86   - return !!config.persetOption?.trendQuery;
  87 + const flag = config.persetOption?.trendQuery;
  88 + return isBoolean(flag) ? flag : true;
87 89 });
88 90
89 91 async function handleCopy() {
... ...