diff --git a/frontend/src/components/event/EventInspector.vue b/frontend/src/components/event/EventInspector.vue index 9338aaa..6cc6c59 100644 --- a/frontend/src/components/event/EventInspector.vue +++ b/frontend/src/components/event/EventInspector.vue @@ -244,8 +244,12 @@ export default { if (requestData === undefined) { requestData = JSON.stringify({}) } - let response = JSON.stringify(eventObj.flow.response) - let message = `URL: ${url}\nMethod: ${method}\nRequestData: ${requestData}\nResponse: ${response}` + let stringifyResponse = '{\n' + for (let key in eventObj.flow.response) { + stringifyResponse += `"${key}": ${JSON.stringify(eventObj.flow.response[key])},\n` + } + stringifyResponse = stringifyResponse.slice(0, -2) + '\n}' + let message = `URL: ${url}\nMethod: ${method}\nRequestData: ${requestData}\nResponse: ${stringifyResponse}` return message }, getAttachmentObj (eventObj) { diff --git a/frontend/src/components/form/AttachmentModal.vue b/frontend/src/components/form/AttachmentModal.vue index 804a96b..a1af6ab 100644 --- a/frontend/src/components/form/AttachmentModal.vue +++ b/frontend/src/components/form/AttachmentModal.vue @@ -61,7 +61,7 @@ export default { const imageFileSuffix = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'wbmp', 'webp', 'tif', 'psd'] let nameSplit = this.attachmentName.split('.') - let nameSuffix = nameSplit[nameSplit.length - 1] + let nameSuffix = nameSplit[nameSplit.length - 1].toLowerCase() return imageFileSuffix.indexOf(nameSuffix) > -1 }, diff --git a/setup.py b/setup.py index f672197..85ff271 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='lyrebird-bugit', - version='1.16.0', + version='1.16.1', packages=['lyrebird_bugit'], url='https://github.com/Meituan-Dianping/lyrebird-bugit', author='HBQA',