1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

#115 clear message

This commit is contained in:
lana-k
2024-01-02 13:57:42 +01:00
parent f58b62eb0c
commit 96af391f20

View File

@@ -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