<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
import Home from './views/Home'
import { mapMutations } from "vuex";
export default {
    name: 'app',
    data () {
        return {
            
        }
    },
    props: ["HeaderFlag"],
    components:{
        Home
    },
    mounted(){
        if (this.HeaderFlag == undefined) {
            this.updateHeaderFlag(true)
        } else {
            this.updateHeaderFlag(false)
        }
    },
    methods:{
        ...mapMutations([
            "updateHeaderFlag"
        ]),
    },
}
</script>

<style lang= "less" scoped>
    #app {
        
    }
</style>
