|
@@ -345,7 +345,6 @@ const ruleForm = {
|
|
|
{ required: true, message: '请求方法不能为空', trigger: 'change' },
|
|
|
{
|
|
|
validator: (rule: any, value: string, callback: any) => {
|
|
|
- console.log(formData.config.method);
|
|
|
if (formData.from === 1 && !formData.config.method) {
|
|
|
callback(new Error('请求方法不能为空'));
|
|
|
} else {
|
|
@@ -391,7 +390,7 @@ const onSubmit = async () => {
|
|
|
from: formData.from,
|
|
|
config: {
|
|
|
...formData.config,
|
|
|
- requestParams: requestParams.value
|
|
|
+ requestParams: requestParams.value
|
|
|
},
|
|
|
};
|
|
|
const theApi = sourceId.value ? api.common.edit : api.common.add
|
|
@@ -432,11 +431,6 @@ const onSubmit = async () => {
|
|
|
showDialog.value = false
|
|
|
emit('typeList')
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
const resetForm = async () => {
|