Browse Source

fix/gui-v2-json-bug-fix

pull/2946/head
Muhammed Mustafa 2 years ago
parent
commit
a9942d431f
  1. 8
      packages/nc-gui-v2/components/cell/Json.vue

8
packages/nc-gui-v2/components/cell/Json.vue

@ -40,10 +40,16 @@ const onSave = () => {
} }
onMounted(() => { onMounted(() => {
console.log('mount', vModel)
localValue = JSON.stringify(vModel) localValue = JSON.stringify(vModel)
}) })
watch(
() => vModel,
(val) => {
localValue = JSON.stringify(val)
},
)
watch( watch(
() => localValue, () => localValue,
(val) => { (val) => {

Loading…
Cancel
Save