fix: bug#20430
This commit is contained in:
parent
95f6f45e88
commit
e6cba52cf3
|
@ -40,9 +40,14 @@ const getProvidersFn = async () => {
|
|||
if (version ==='community') {
|
||||
return undefined
|
||||
} else {
|
||||
try {
|
||||
const res: any = await getProviders();
|
||||
const ids = res.result?.map?.(item => item.id) || []
|
||||
return protocolList.some(item => ids.includes(item.value))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ const handOptionByColumn = (option: any) => {
|
|||
]
|
||||
}
|
||||
} else if(option.type === 'enum') {
|
||||
valueOptions.value = _options?.map((item: any) => ({ ...item, label: item.name, value: item.id})) || []
|
||||
valueOptions.value = _options?.elements?.map((item: any) => ({ ...item, label: item.text, value: item.value})) || []
|
||||
} else{
|
||||
valueOptions.value = _options?.map((item: any) => ({ ...item, label: item.name, value: item.id})) || []
|
||||
}
|
||||
|
|
|
@ -61,14 +61,14 @@
|
|||
</j-form-item>
|
||||
</j-col>
|
||||
<j-col :span="12">
|
||||
<j-form-item label="页面地址" name="url" :rules="[
|
||||
<j-form-item :rules="[
|
||||
{
|
||||
required: true,
|
||||
message: '请输入页面地址',
|
||||
},
|
||||
{ max: 128, message: '最多可输入128字符' },
|
||||
{ pattern: /^\//, message: '请正确填写地址,以/开头' },
|
||||
]">
|
||||
]" :validateFirst="true" label="页面地址" name="url">
|
||||
<j-input v-model:value="form.data.url" placeholder="请输入页面地址" />
|
||||
</j-form-item>
|
||||
</j-col>
|
||||
|
|
Loading…
Reference in New Issue