refactor: type name

This commit is contained in:
Methapon Metanipat 2024-10-04 14:57:08 +07:00
parent 548f10feab
commit f26f6b51d6
7 changed files with 24 additions and 24 deletions

View file

@ -4,7 +4,7 @@ import { formatNumberDecimal } from 'stores/utils';
import useProductServiceStore from 'stores/product-service';
import useOptionStore from 'stores/options';
import { Attributes, ProductList } from 'stores/product-service/types';
import { Attributes, Product } from 'stores/product-service/types';
import { storeToRefs } from 'pinia';
import { ref, watch } from 'vue';
@ -39,7 +39,7 @@ withDefaults(
const workName = defineModel<string>('workName');
const attributes = defineModel<Attributes>('attributes', { required: true });
const productItems = defineModel<(ProductList & { nameEn: string })[]>(
const productItems = defineModel<(Product & { nameEn: string })[]>(
'productItems',
{
required: true,