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: { watch: {
currentFormat () { currentFormat () {
this.messages = []
this.formattedJson = '' this.formattedJson = ''
if (this.currentFormat === 'json') { if (this.currentFormat === 'json') {
this.formatJson(this.cellValue) this.formatJson(this.cellValue)
@@ -92,7 +93,6 @@ export default {
}, },
methods: { methods: {
formatJson (jsonStr) { formatJson (jsonStr) {
this.messages = []
try { try {
this.formattedJson = JSON.stringify( this.formattedJson = JSON.stringify(
JSON.parse(jsonStr), null, 4 JSON.parse(jsonStr), null, 4