This commit is contained in:
taskylizard
2023-11-14 22:48:52 +05:30
parent fbebbefb80
commit ffedc34675
11 changed files with 97 additions and 69 deletions

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { reactive, ref } from "vue";
import { useRoute } from "vitepress";
import type { FeedbackType } from "../../types/Feedback";
import { fetcher } from "itty-fetcher";
import type { FeedbackType } from "../../types/Feedback";
const loading = ref<boolean>(false);
const error = ref<unknown>(null);
@@ -57,8 +57,8 @@ async function handleSubmit(type?: FeedbackType["type"]) {
if (data.status === "success") {
success.value = true;
}
} catch (err) {
error.value = err;
} catch (error_) {
error.value = error_;
} finally {
loading.value = false;
}