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