<template>
   <div id="app" v-loading="loading">
    <!-- <img src="./assets/logo.png"> -->
    <router-view />
  </div>
</template>

<script>
import commonHeader from '@/components/commonHeaders.vue'
export default {
    name: 'App',
    components:{
        commonHeader
    },
    data() {
        return {
            showHeader:false,
            loading: true
        }
    },
    watch:{
        $route: {
            handler: function(route) {
                // route.path === '/index' || route.path === '/weather'
                this.showHeader = route.path === '/login' ? false : true
            },
            immediate: true
        }
    },
    mounted() {
        window.workSpaceVo = {}
        this.loadPage()
    },
    methods:{
        loadPage() {
            setTimeout(() => {
                this.loading = false;
            }, 1000);
        }
    }
}
</script>

<style>
@import "./assets/css/main.css";
/* @import "./assets/css/color-dark.css"; */
#app{
    background: #273856;
    /* background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#005777), to(#005777), color-stop(0.2, #007aab),color-stop(0.8, #007aab)); */
}
</style>