diff --git a/src/stores/formView.ts b/src/stores/formView.ts deleted file mode 100644 index 95757cf..0000000 --- a/src/stores/formView.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ref } from 'vue' -import { defineStore } from 'pinia' - -export const useFormViewStore = defineStore('formView', () => { - const error = ref(''); - - return { error } -}) diff --git a/src/views/form/View.vue b/src/views/form/View.vue index fa4e29f..6cfe9e2 100644 --- a/src/views/form/View.vue +++ b/src/views/form/View.vue @@ -9,7 +9,6 @@ import { useRoute } from 'vue-router' import { PhInfo, PhCardsThree } from '@phosphor-icons/vue' import { validateSNILS, validateTIN } from '@/utils/validators' -import { useFormViewStore } from '@/stores/formView' const route = useRoute() @@ -21,8 +20,6 @@ const answers = ref([]) const isFormNotFound = ref(true) const isSent = ref(false) -const formViewStore = useFormViewStore; - async function prepareNewPage() { currentPage.value = data.value.pages[currentPageNumber.value] currentPage.value.questions.forEach((q) => { @@ -100,7 +97,7 @@ onMounted(async () => {
- +
Страница {{ currentPageNumber + 1 }} из {{ data.pages.length }}

{{ data.name }}