fix: move store inside to avoid possible error on import

This commit is contained in:
Methapon Metanipat 2024-10-03 09:42:42 +07:00
parent 5c8d783fe1
commit e581556e78

View file

@ -6,9 +6,9 @@ import { QuotationPayload, EmployeeWorker } from 'src/stores/quotations/types';
import { useQuotationStore } from 'stores/quotations';
const quotationStore = useQuotationStore();
export const useQuotationForm = defineStore('form-quotation', () => {
const quotationStore = useQuotationStore();
const defaultFormData: QuotationPayload = {
service: [
{