This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="bg-yellow-page mt-5">
|
||||
<v-container>
|
||||
<div class="text-title text-center mt-10">
|
||||
ตวรจเช็คคุณสมบัติ-ลักษณะต้องห้าม ของผู้ที่จะสมัคร สว.<br />
|
||||
ตรวจเช็คคุณสมบัติ-ลักษณะต้องห้าม ของผู้ที่จะสมัคร สว.<br />
|
||||
<!-- <v-icon icon="mdi-circle" color="white" class="mt-2"></v-icon> -->
|
||||
</div>
|
||||
<div class="text-center mb-10">
|
||||
|
||||
Reference in New Issue
Block a user