fix: use existing dict option API in im views
This commit is contained in:
@@ -70,7 +70,7 @@ export const schemas = ref<FormSchema[]>([
|
||||
label: '状态',
|
||||
componentProps: {
|
||||
clearable: true,
|
||||
options: computed(() => dict.getOptions('ImFileStatusOptions')),
|
||||
options: dict.getOption('ImFileStatusOptions'),
|
||||
placeholder: '请选择状态',
|
||||
},
|
||||
},
|
||||
@@ -80,7 +80,7 @@ export const schemas = ref<FormSchema[]>([
|
||||
label: '用途',
|
||||
componentProps: {
|
||||
clearable: true,
|
||||
options: computed(() => dict.getOptions('ImFilePurposeOptions')),
|
||||
options: dict.getOption('ImFilePurposeOptions'),
|
||||
placeholder: '请选择用途',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user