Skip to content

Commit dd24f70

Browse files
committed
fix: build error
1 parent 1feca75 commit dd24f70

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

src/utils/nodeStatistics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TaskInfo, NodeInfo } from '../types'
1+
import type { TaskInfo } from '../types'
22

33
/**
44
* 节点统计信息

src/views/NodeStatisticsView.vue

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ const recognitionActionChartDimension = ref<RecognitionActionChartDimension>('av
6767
// 搜索关键词
6868
const searchKeyword = ref('')
6969
70-
// 清空本地数据
71-
const clearLocalData = () => {
72-
localTasks.value = []
73-
useLocalData.value = false
74-
parseProgress.value = 0
75-
}
76-
7770
// 处理文件上传
7871
const handleFileUpload = async (file: File) => {
7972
// 如果正在上传,忽略新的上传请求
@@ -433,18 +426,13 @@ const recognitionActionSummary = computed(() => {
433426
}
434427
})
435428
436-
// 当前显示的摘要
437-
const summary = computed(() => {
438-
return statMode.value === 'node' ? nodeSummary.value : recognitionActionSummary.value
439-
})
440-
441429
// 节点统计饼图数据(根据选择的维度)
442430
const nodeChartOption = computed(() => {
443431
if (nodeStatistics.value.length === 0) return null
444432
445433
const dimension = nodeChartDimension.value
446434
let title = ''
447-
let formatter = ''
435+
let formatter: string | ((params: any) => string) = ''
448436
let sortFn: (a: NodeStatistics, b: NodeStatistics) => number
449437
let valueFn: (item: NodeStatistics) => number
450438
@@ -547,7 +535,7 @@ const recognitionActionChartOption = computed(() => {
547535
548536
const dimension = recognitionActionChartDimension.value
549537
let title = ''
550-
let formatter = ''
538+
let formatter: string | ((params: any) => string) = ''
551539
let sortFn: (a: RecognitionActionStatistics, b: RecognitionActionStatistics) => number
552540
let valueFn: (item: RecognitionActionStatistics) => number
553541
let filterFn: (item: RecognitionActionStatistics) => boolean = () => true

0 commit comments

Comments
 (0)