validateForm เพิ่มเรื่องร้องเรียน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-18 14:41:11 +07:00
parent dd89933261
commit b00a946c64
8 changed files with 302 additions and 62 deletions

View file

@ -2,6 +2,7 @@
import { ref } from "vue";
import { useRouter } from "vue-router";
// import step
import step01 from "./Step01.vue";
import step02 from "./Step02.vue";
import step03 from "./Step03.vue";
@ -9,11 +10,12 @@ import step03 from "./Step03.vue";
const router = useRouter();
const step = ref<number>(1);
// nextStep
const nextStep = async () => {
localStorage.setItem("currentStep", step.value.toString());
step.value++;
};
// previousStep
const previousStep = async () => {
localStorage.setItem("currentStep", step.value.toString());
step.value--;