refactor: add defineModel nodes

This commit is contained in:
Thanaphon Frappet 2024-10-10 13:24:17 +07:00
parent 2da944b30e
commit 659f78211e

View file

@ -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<Node[]>([]);
const nodes = defineModel<Node[]>('nodes', { required: true, default: [] });
const productServiceCard = ref<{
service: Record<string, any>[];
product: Record<string, any>[];