Skip to content

Commit

Permalink
Merge pull request #65 from noO0oOo0ob/bugfix/fix-pic-not-show-and-re…
Browse files Browse the repository at this point in the history
…gular-desc

Bugfix/fix pic not show and regular desc
  • Loading branch information
echoyang7 authored Mar 29, 2024
2 parents d1e3bc2 + 756a821 commit 90dc966
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/event/EventInspector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/AttachmentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 90dc966

Please sign in to comment.