<template>
    <header>
        <div class="title"><img :src="logo" alt="로고"></div>
        <Menu></Menu>
        <div class="user-info">
            <div class="user-name">관리자</div>
            <button @click="logout" class="user-logout">로그아웃</button>
        </div>
    </header>
</template>

<script>
import Menu from '../layout/Menu.vue';
export default {
    data() {
        return {
            logo: "/client/resources/img/logo.png",
        };
    },
    methods: {
        logout(){
            localStorage.removeItem('isLoggedIn');
this.$router.push('/login.page'); 

        }
    },
    watch: {},
    computed: {},
    components: {
        'Menu': Menu,
    },
    created() {},
    mounted() {},
    beforeUnmount() {},
};

</script>