Skip to content

Commit 1365771

Browse files
committed
fix: remove unused imports to fix frontend build errors (TS6133)
1 parent e7d6ef9 commit 1365771

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/frontEnd/src/components/GuidedParamEditor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import ParamConfigPanel from './GuidedParamEditor/ParamConfigPanel.vue'
4040
import SelectedParamsPanel from './GuidedParamEditor/SelectedParamsPanel.vue'
4141
import CommandPreview from './GuidedParamEditor/CommandPreview.vue'
4242
import {
43-
PARAM_DEFINITIONS,
4443
getParamDefinition,
4544
type ParamDefinition
4645
} from '@/utils/paramDefinitions'

src/frontEnd/src/components/GuidedParamEditor/ParamSelectPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</template>
7070

7171
<script setup lang="ts">
72-
import { ref, computed, watch } from 'vue'
72+
import { ref, computed } from 'vue'
7373
import Select from 'primevue/select'
7474
import InputText from 'primevue/inputtext'
7575
import Checkbox from 'primevue/checkbox'

src/frontEnd/src/utils/paramDefinitions/params/enumeration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Enumeration 枚举参数定义
33
*/
44
import type { ParamDefinition } from '../types'
5-
import { DUMP_FORMAT_OPTIONS } from '../types'
65

76
export const ENUMERATION_PARAMS: ParamDefinition[] = [
87
// 基本枚举

src/frontEnd/src/views/AddTask/components/CustomModePanel/scanOptionsConverter.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { DEFAULT_SCAN_OPTIONS, type ScanOptions } from '@/types/scanPreset'
7-
import { getParamDefinition, PARAM_DEFINITIONS } from '@/utils/paramDefinitions'
7+
import { getParamDefinition } from '@/utils/paramDefinitions'
88

99
/**
1010
* 判断值是否为空(null/undefined/空字符串)
@@ -25,11 +25,6 @@ function isEqual(a: any, b: any): boolean {
2525
return false
2626
}
2727

28-
/**
29-
* 获取已知参数的 key 集合
30-
*/
31-
const knownParamKeys = new Set(PARAM_DEFINITIONS.map(p => p.key))
32-
3328
/**
3429
* 将 ScanOptions 转换为 selectedParams
3530
* 过滤掉空值、false 和等于默认值的参数

0 commit comments

Comments
 (0)