From 659f78211ec04fd5cab6debdc309ad734230eb71 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Thu, 10 Oct 2024 13:24:17 +0700 Subject: [PATCH] refactor: add defineModel nodes --- src/pages/05_quotation/ProductServiceForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/ProductServiceForm.vue b/src/pages/05_quotation/ProductServiceForm.vue index f5bc6ade..a940bff1 100644 --- a/src/pages/05_quotation/ProductServiceForm.vue +++ b/src/pages/05_quotation/ProductServiceForm.vue @@ -39,6 +39,7 @@ const { data: config } = storeToRefs(configStore); const prop = defineProps<{ agentPrice: boolean; + nodesFormOutput?: Node[]; }>(); const emit = defineEmits<{ @@ -85,7 +86,7 @@ const priceDisplay = computed(() => ({ onMounted(configStore.getConfig); -const nodes = ref([]); +const nodes = defineModel('nodes', { required: true, default: [] }); const productServiceCard = ref<{ service: Record[]; product: Record[];