fix: use existing dict option API in im views
This commit is contained in:
@@ -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: '请选择开关',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user