Check login status and disable button on setting

This commit is contained in:
p11037 2023-11-24 11:32:54 +07:00
parent 240701ed7a
commit 82e1e4e86a
3 changed files with 49 additions and 30 deletions

View file

@ -1,7 +1,7 @@
<template>
<v-app>
<v-container class="d-flex justify-center align-center">
<div>
<div v-if="!currentUser">
<h1>งไมไดลงชอเขาใช</h1>
<h2>ลงชอเขาใชเพอบนทกการตงคาอยางปลอดภ</h2>
<v-container class="d-flex justify-center align-center">
@ -106,3 +106,13 @@ const display_items = [
}
</script>
<script>
export default {
data() {
return {
currentUser: JSON.parse(sessionStorage.getItem('current_user'))
};
}
};
</script>