新闻
This commit is contained in:
@@ -632,11 +632,11 @@ async function handleSubmit() {
|
||||
for (const param of selectedMethod.value.params) {
|
||||
const value = dynamicParams.value[param.name];
|
||||
|
||||
if (param.type === 'String' && (!value || value.trim() === '')) {
|
||||
if (param.required && param.type === 'String' && (!value || value.trim() === '')) {
|
||||
ElMessage.warning(`请输入${param.description}`);
|
||||
return;
|
||||
}
|
||||
if (param.type === 'Integer' && (value === undefined || value === null || value === '')) {
|
||||
if (param.required && param.type === 'Integer' && (value === undefined || value === null || value === '')) {
|
||||
ElMessage.warning(`请输入${param.description}`);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user