<template>
  <TitleBar />
  <CenterPage/>
  <StatusBar />
</template>

<script>
import TitleBar from "./components/TitleBar.vue";
import CenterPage from "./components/CenterPage.vue";
import StatusBar from "./components/StatusBar.vue";

import MessageBridge from "./assets/script/MessageBridge";

export default {
  name: "App",
  components: {
    TitleBar,
    CenterPage,
    StatusBar,
  },
  props:{
    
  },
  created: function () {
    this.initData()
  },
  methods: {
    initData: function () {
      var mb = MessageBridge.getInstance();
      var vs = [{ key: "/topic/windturbine", action: this.windturbineMessage }];
      mb.register(vs);
    },
    windturbineMessage(msg) {
      var json = JSON.parse(msg);
      this.$store.commit('windturbinelist', json)
    },
  },
};
</script>

<style>
@import "./assets/style/main.css";
/*#app {
   font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px; 
  background-color: coral;
  padding: 0;
  margin: 0;
  border: none;
} */

body {
  /* 设置内容不可选中 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
</style>
