diff --git a/src/hooks/useChartDataFetch.hook.ts b/src/hooks/useChartDataFetch.hook.ts index 3155ac74..202c40a0 100644 --- a/src/hooks/useChartDataFetch.hook.ts +++ b/src/hooks/useChartDataFetch.hook.ts @@ -37,8 +37,15 @@ export const useChartDataFetch = ( } = toRefs(targetComponent.request) // 非请求类型 - if (requestDataType.value !== RequestDataTypeEnum.AJAX || !requestInterval) return - + if ( + requestDataType.value !== RequestDataTypeEnum.AJAX || + !requestInterval || + !requestInterval.value || + !targetInterval || + !targetInterval.value + ) + return + try { // 处理地址 // @ts-ignore diff --git a/src/plugins/icon.ts b/src/plugins/icon.ts index 43583f0c..bd9c90ff 100644 --- a/src/plugins/icon.ts +++ b/src/plugins/icon.ts @@ -54,7 +54,8 @@ import { Planet as PawIcon, Search as SearchIcon, ChevronUpOutline as ChevronUpOutlineIcon, - ChevronDownOutline as ChevronDownOutlineIcon + ChevronDownOutline as ChevronDownOutlineIcon, + Pulse as PulseIcon } from '@vicons/ionicons5' import { @@ -200,7 +201,9 @@ const ionicons5 = { // 向上 ChevronUpOutlineIcon, // 向下 - ChevronDownOutlineIcon + ChevronDownOutlineIcon, + // 脉搏 + PulseIcon } const carbon = { diff --git a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue index d672891a..56ba3818 100644 --- a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue @@ -1,45 +1,42 @@