diff --git a/src/components/form/FormSteper.vue b/src/components/form/FormSteper.vue index e8e9e89..0ff4ac2 100644 --- a/src/components/form/FormSteper.vue +++ b/src/components/form/FormSteper.vue @@ -793,7 +793,8 @@ export default { body: formData, }).then(() => { client.user.confirmChangeImage.mutate(); - alert("บันทึกข้อมูลสำเร็จ"); + alert("บันทึกข้อมูลสำเร็จ\n สามารถ login ด้วย username : เลขบัตรประชาชน / password : เบอร์โทรศัพท์"); + }); console.log("done"); }, @@ -809,7 +810,7 @@ export default { if (filterOpt2.length) { this.payload.opinions = filterOpt2; } - // console.log("opppp", filterOpt, filterOpt2); + // let payload = { // firstName: "ธรรมนูญ2", @@ -840,21 +841,18 @@ export default { // // ], // }; - // console.log("this.payload", this.payload); client.user.createUser .mutate(this.payload) .then((data) => { - console.log("data", data); + // console.log("data", data); localStorage.setItem("token", data.token); if (this.file) { this.uploadImage(); } else { - alert("บันทึกข้อมูลสำเร็จ"); + alert("บันทึกข้อมูลสำเร็จ\n สามารถ login ด้วย username : เลขบัตรประชาชน / password : เบอร์โทรศัพท์"); } this.getUser(); - // this.$router.push("/upload"); - // this.provinceItems = data; }) .catch((error) => { alert("ไม่สามารถบันทึกข้อมูลได้: " + error.message); @@ -865,7 +863,7 @@ export default { client.user.login .mutate(payload) .then((data) => { - console.log("data", data); + // console.log("data", data); localStorage.setItem("token", data.token); this.$router.push("/"); @@ -885,7 +883,7 @@ export default { // this.$store.dispatch('setLocalStorageValue',data.firstName) }) .catch((error) => { - alert("ไม่สามารถโหลดข้อมูลได้"); + alert("ไม่สามารถโหลดข้อมูลได้"+ error.message); console.error("เกิดข้อผิดพลาดในการโหลดข้อมูล:", error); }); }, @@ -894,7 +892,7 @@ export default { if (this.image && this.image !== null) { const reader = new FileReader(); reader.onload = (event) => { - console.log(event.target.result); + // console.log(event.target.result); this.url = event.target.result; }; reader.readAsDataURL(this.image); diff --git a/src/views/CheckDetail.vue b/src/views/CheckDetail.vue index 243dd1b..4b59526 100644 --- a/src/views/CheckDetail.vue +++ b/src/views/CheckDetail.vue @@ -2,7 +2,7 @@
- ตวรจเช็คคุณสมบัติ-ลักษณะต้องห้าม ของผู้ที่จะสมัคร สว.
+ ตรวจเช็คคุณสมบัติ-ลักษณะต้องห้าม ของผู้ที่จะสมัคร สว.