diff --git a/frontend/src/views/datamanager/DataDetailHttpData.vue b/frontend/src/views/datamanager/DataDetailHttpData.vue index 6ba7585ff..b1a21393e 100644 --- a/frontend/src/views/datamanager/DataDetailHttpData.vue +++ b/frontend/src/views/datamanager/DataDetailHttpData.vue @@ -189,6 +189,8 @@ export default { Object.assign(newResp, JSON.parse(this.editorCache.resp)) newResp['data'] = this.editorCache.respData newData['response'] = newResp + // Add Flag + newData['lyrebirdInternalFlow'] = 'datamanager' this.$store.commit('setIsReloadTreeWhenUpdate', this.dataDetail.name !== newData.name) diff --git a/lyrebird/mock/blueprints/apis/mock.py b/lyrebird/mock/blueprints/apis/mock.py index c69b47fc9..9c599a409 100644 --- a/lyrebird/mock/blueprints/apis/mock.py +++ b/lyrebird/mock/blueprints/apis/mock.py @@ -114,6 +114,8 @@ def put(self): data = request.json # Import encoder for encoding the requested content application.encoders_decoders.encoder_handler(data) + if 'lyrebirdInternalFlow' in data: + del data['lyrebirdInternalFlow'] context.application.data_manager.update_data(data_id, data) context.application.data_manager.reactive() return context.make_ok_response()