Check login status and disable button on setting
This commit is contained in:
parent
240701ed7a
commit
82e1e4e86a
3 changed files with 49 additions and 30 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue