Browse Source

fix(nc-gui): init after props.type is changed

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
28ff1d9c71
  1. 7
      packages/nc-gui/components/dlg/ViewCreate.vue

7
packages/nc-gui/components/dlg/ViewCreate.vue

@ -99,11 +99,12 @@ const typeAlias = computed(
}[props.type]), }[props.type]),
) )
watch(vModel, (value) => value && init())
watch( watch(
() => props.type, () => props.type,
(newType) => (form.type = newType), (newType) => {
form.type = newType
init()
},
) )
function init() { function init() {

Loading…
Cancel
Save