NEZ-3090 fix:Users中Operation下Operation log页面,Request params、Response复制的数据发生转义

This commit is contained in:
zhangyu
2023-08-18 15:59:31 +08:00
parent 988fb60a2d
commit d4bca3361a

View File

@@ -190,7 +190,7 @@ export default {
}
},
copyValue (item) {
const str = item
const str = JSON.stringify(JSON.parse(item), null, 2)
// const domUrl = document.createElement('input')
// domUrl.value = JSON.stringify(str)
// domUrl.id = 'creatDom'
@@ -200,7 +200,7 @@ export default {
// const creatDom = document.getElementById('creatDom')
// creatDom.parentNode.removeChild(creatDom)
// this.$message.success(this.$t('overall.copySuccess'))
this.$copyText(JSON.stringify(str)).then(() => {
this.$copyText(str).then(() => {
this.$message.success({ message: this.$t('overall.copySuccess') })
})
}