|
@@ -1,31 +1,35 @@
|
|
|
<template>
|
|
|
- <TitleBar/>
|
|
|
- <CenterPage/>
|
|
|
- <StatusBar/>
|
|
|
+ <TitleBar />
|
|
|
+ <CenterPage />
|
|
|
+ <StatusBar />
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import TitleBar from './components/TitleBar.vue'
|
|
|
-import CenterPage from './components/CenterPage.vue'
|
|
|
-import StatusBar from './components/StatusBar.vue'
|
|
|
-
|
|
|
+import TitleBar from "./components/TitleBar.vue";
|
|
|
+import CenterPage from "./components/CenterPage.vue";
|
|
|
+import StatusBar from "./components/StatusBar.vue";
|
|
|
+import WebSocket from "./assets/script/webSocket";
|
|
|
|
|
|
export default {
|
|
|
- name: 'App',
|
|
|
+ name: "App",
|
|
|
components: {
|
|
|
TitleBar,
|
|
|
CenterPage,
|
|
|
StatusBar,
|
|
|
},
|
|
|
- created:function(){
|
|
|
- console.log("你好");
|
|
|
- }
|
|
|
-}
|
|
|
+ props: {
|
|
|
+
|
|
|
+ },
|
|
|
+ created: function () {
|
|
|
+ var msbridge = new WebSocket.messagebridge();
|
|
|
+ msbridge.onmessage=onmessage;
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-@import './assets/style/main.css';
|
|
|
- /*#app {
|
|
|
+@import "./assets/style/main.css";
|
|
|
+/*#app {
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|