fix: use existing dict option API in im views

This commit is contained in:
richjohnrambo
2026-09-03 14:53:26 +08:00
parent 82675c7500
commit 5a2ed4b2a4
23 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ export const schemas = ref<FormSchema[]>([
label: '用途',
componentProps: {
clearable: true,
options: computed(() => dict.getOptions('ImFilePurposeOptions')),
options: dict.getOption('ImFilePurposeOptions'),
placeholder: '请选择用途',
},
},
@@ -61,7 +61,7 @@ export const schemas = ref<FormSchema[]>([
label: '自动清理',
componentProps: {
clearable: true,
options: computed(() => dict.getOptions('ImFilePolicySwitchOptions')),
options: dict.getOption('ImFilePolicySwitchOptions'),
placeholder: '请选择开关',
},
},
@@ -71,7 +71,7 @@ export const schemas = ref<FormSchema[]>([
label: '病毒扫描',
componentProps: {
clearable: true,
options: computed(() => dict.getOptions('ImFilePolicySwitchOptions')),
options: dict.getOption('ImFilePolicySwitchOptions'),
placeholder: '请选择开关',
},
},