delay removed

This commit is contained in:
Komek Hayytnazarov 2022-11-23 11:04:26 +05:00
parent 3255f0492b
commit da5eb85e19
2 changed files with 5 additions and 4 deletions

View File

@ -94,8 +94,8 @@
import Calculator from "@/components/calculator/Main.vue";
import { fetchWrapper } from "@/api";
import { ref, reactive } from "vue";
import { helper as $h } from "@/utils/helper";
import { delay } from "@/helpers";
// import { helper as $h } from "@/utils/helper";
// import { delay } from "@/helpers";
const baseUrl = `${import.meta.env.VITE_API_URL}/api`;
@ -129,7 +129,7 @@ const onEnter = async (number) => {
hasNumber.value = false;
isLoading.value = true;
await delay(2000)
// await delay(2000)
const response = await fetchWrapper.post(
`${baseUrl}/contract`,

View File

@ -264,7 +264,8 @@ const onEdit = (name, params) => {
};
const onLegalBtnTapped = async () => {
//console.log("onLegalBtnTapped");
console.log("onLegalBtnTapped: ", legalCanApply.value, legalCanExtend.value);
if (legalCanApply.value || legalCanExtend.value) {
const response = await createApplication();
if (response) router.push({ name: "documents" });