refacter พ้นจากราชการ

This commit is contained in:
AnandaTon 2023-09-20 13:03:54 +07:00
parent 0e5dc057b8
commit 9d0f0eaabf
12 changed files with 34 additions and 63 deletions

View file

@ -59,7 +59,6 @@ const responseData = ref<ResponseDataDetail>({
onMounted(async () => {
if (keycloak.tokenParsed != null) {
roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1");
console.log("roleAdmin===>", roleAdmin.value);
}
await getData();
});
@ -140,8 +139,6 @@ const saveData = async () => {
await http
.put(config.API.outByid(dataId), body)
.then((res: any) => {
// const data = res.data.result;
// console.log(data);
success($q, "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้ายสำเร็จ");
edit.value = false;
})