mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
#115 clear message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user