log logout
This commit is contained in:
parent
4d11bc01fc
commit
32b83298cd
3 changed files with 34 additions and 18 deletions
|
|
@ -46,7 +46,7 @@ onMounted(async () => {
|
|||
});
|
||||
|
||||
async function checkUser() {
|
||||
await http
|
||||
await http
|
||||
.get(config.API.profilePosition())
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
|
|
@ -55,7 +55,6 @@ async function checkUser() {
|
|||
if (data.avatarName) {
|
||||
await getImg(data.profileId, data.avatarName);
|
||||
} else {
|
||||
|
||||
dataStore.profileImg = avatar;
|
||||
}
|
||||
})
|
||||
|
|
@ -145,8 +144,9 @@ const doLogout = () => {
|
|||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await http.post(config.API.keycloakLogSSO, { text: "ออกจากระบบ" });
|
||||
// authen with client
|
||||
logout();
|
||||
await logout();
|
||||
},
|
||||
"ยืนยันการออกจากระบบ",
|
||||
"ต้องการออกจากระบบใช่หรือไม่"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue