1
0
forked from test/crm

fix: reload data as well

This commit is contained in:
Shariq Ansari 2024-12-06 17:17:52 +05:30
parent 93a3b1c44a
commit 9b3babc87d

View File

@ -38,7 +38,12 @@
v-if="showDataFieldsModal"
v-model="showDataFieldsModal"
:doctype="doctype"
@reload="tabs.reload"
@reload="
() => {
tabs.reload()
data.reload()
}
"
/>
</template>
@ -70,7 +75,7 @@ const showDataFieldsModal = ref(false)
const data = createDocumentResource({
doctype: props.doctype,
name: props.docname,
cache: ['doc', props.docname],
cache: ['doc', props.doctype, props.docname],
setValue: {
onSuccess: () => {
data.reload()