whistle.mock-plugins 1.2.0-beta.13 → 1.2.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -430,13 +430,11 @@ const InterfaceManagement = () => {
|
|
|
430
430
|
interfaceData.headers = headers;
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
//
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
);
|
|
439
|
-
}
|
|
433
|
+
// 添加参数匹配规则(始终发送,空数组用于清空后端旧值)
|
|
434
|
+
const filteredParamMatchers = Array.isArray(values.paramMatchers)
|
|
435
|
+
? values.paramMatchers.filter(matcher => matcher && matcher.paramPath && matcher.paramValue)
|
|
436
|
+
: [];
|
|
437
|
+
interfaceData.paramMatchers = filteredParamMatchers;
|
|
440
438
|
|
|
441
439
|
console.log('提交接口数据:', interfaceData);
|
|
442
440
|
|
|
@@ -436,13 +436,11 @@ const InterfaceManagement = () => {
|
|
|
436
436
|
interfaceData.headers = headers;
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
//
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
);
|
|
445
|
-
}
|
|
439
|
+
// 添加参数匹配规则(始终发送,空数组用于清空后端旧值)
|
|
440
|
+
const filteredParamMatchers = Array.isArray(values.paramMatchers)
|
|
441
|
+
? values.paramMatchers.filter(matcher => matcher && matcher.paramPath && matcher.paramValue)
|
|
442
|
+
: [];
|
|
443
|
+
interfaceData.paramMatchers = filteredParamMatchers;
|
|
446
444
|
|
|
447
445
|
console.log('提交接口数据:', interfaceData);
|
|
448
446
|
|