xushining hace 4 años
padre
commit
c4c8cc9946

+ 5 - 1
src/App.vue

@@ -9,12 +9,16 @@ import TitleBar from './components/TitleBar.vue'
 import CenterPage from './components/CenterPage.vue'
 import StatusBar from './components/StatusBar.vue'
 
+
 export default {
   name: 'App',
   components: {
     TitleBar,
     CenterPage,
-    StatusBar
+    StatusBar,
+  },
+  created:function(){
+    console.log("你好");
   }
 }
 </script>

+ 5 - 0
src/assets/script/WEBSocket.js

@@ -0,0 +1,5 @@
+export default{
+    data:{
+        hello,
+    }
+}

+ 1 - 1
src/components/CenterPage.vue

@@ -7,7 +7,7 @@
 
 <style scoped>
 .status-bar{
-    height: 91vh;
+    height: 91%;
     background-color:blue;
 }
 </style>

+ 1 - 1
src/components/StatusBar.vue

@@ -7,7 +7,7 @@
 
 <style scoped>
 .status-bar{
-    height: 4vh;
+    height: 4%;
     background-color:black;
     
     margin-bottom: 0;

+ 1 - 1
src/components/TitleBar.vue

@@ -7,7 +7,7 @@
 
 <style scoped>
 .title-bar{
-    height: 5vh;
+    height: 5%;
     background-color: aqua;
     margin: 0;
 }