diff --git a/src/views/Main/Workspace/Tabs/Tab/RunResult/ValueViewer.vue b/src/views/Main/Workspace/Tabs/Tab/RunResult/ValueViewer.vue index d11d99b..3a60fa1 100644 --- a/src/views/Main/Workspace/Tabs/Tab/RunResult/ValueViewer.vue +++ b/src/views/Main/Workspace/Tabs/Tab/RunResult/ValueViewer.vue @@ -79,6 +79,7 @@ export default { }, watch: { currentFormat () { + this.messages = [] this.formattedJson = '' if (this.currentFormat === 'json') { this.formatJson(this.cellValue) @@ -92,7 +93,6 @@ export default { }, methods: { formatJson (jsonStr) { - this.messages = [] try { this.formattedJson = JSON.stringify( JSON.parse(jsonStr), null, 4