<template>
  <div id="home-app">
    <newmanage-home v-if="homeflag" :homeflag="homeflag"></newmanage-home>
    <manage-home v-if="!homeflag" :homeflag="homeflag"></manage-home>
  </div>
</template>

<script>

  export default {
        name: "Cockpit",
        title:'Cockpit',
      data(){
          return{
          homeflag:Boolean,
          sacle:1
          }
      },
      watch:{
          'homeflag'(){
            console.log(this.homeflag,'测试页面切换')
          }
      },

      ready(){
         console.log( window.innerWidth,'浏览器高度')
          if(window.innerWidth==1920){
              this.scale=1
          }
          if(window.innerWidth==1366){
              this.scale=0.8
          }
        // setInterval(function () {
        //   RSS(1920, 1080)   //Ui图实际大小
        // },1000)
          this.homeflag=true
      }
    }
</script>

<style scoped>

</style>
