<template>
    <div class="header">
        <img src="/static/images/header.png" alt="#" style="height: 50px; margin-top: 5px" />
        <i class="el-icon-user-solid userName">
            <span>{{ userName }}</span>
        </i>
    </div>
</template>

<script>
export default {
    methods: {},
    computed: {
        userName: function() {
            return localStorage.getItem("userName");
        }
    }
};
</script>

<style>
.header {
    background: white;
    height: 60px;
}
.userName {
    font-size: 20px;
    color: #354595;
    float: right;
    margin-top: 30px;
    margin-right: 20px;
}
.userName span {
    color: #000;
    margin-left: 10px;
}
</style>
