diff --git a/frontend/src/views/datamanager/DataDetailHttpData.vue b/frontend/src/views/datamanager/DataDetailHttpData.vue index 6ba7585ff..5bcafe459 100644 --- a/frontend/src/views/datamanager/DataDetailHttpData.vue +++ b/frontend/src/views/datamanager/DataDetailHttpData.vue @@ -212,7 +212,8 @@ export default { this.editorCache.info = JSON.stringify({ id: val.id, name: val.name, - rule: val.rule + rule: val.rule, + apiDiffConfig: val.apiDiffConfig }) this.editorCache.req = JSON.stringify({ url: val.request.url, diff --git a/lyrebird/mock/handlers/mock_handler.py b/lyrebird/mock/handlers/mock_handler.py index 4492e31e0..311c421ef 100644 --- a/lyrebird/mock/handlers/mock_handler.py +++ b/lyrebird/mock/handlers/mock_handler.py @@ -91,4 +91,5 @@ def handle(self, handler_context): 'group_id': activated_group['id'], 'mock_id': hit_data['id'] }) + handler_context.flow['apiDiffConfig'] = hit_data.get('apiDiffConfig') MockDataHelper.read_mock_data(handler_context) diff --git a/lyrebird/version.py b/lyrebird/version.py index fd8ffe04f..7388cfd6b 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 21, 2) +IVERSION = (2, 22, 0) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION