浏览代码

调整九宫格中的item的位置

57862207 1 年之前
父节点
当前提交
2468b35b40
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/lib/ws/websocket.js
  2. 3 3
      src/views/ordinaryPage/index.vue

+ 1 - 1
src/lib/ws/websocket.js

@@ -21,7 +21,7 @@ class IO {
             // 判断是否支持 WebSocket
             if ('WebSocket' in window) {
                 // 连接WebSocket
-                this.ws = new WebSocket(this.url);
+                this.ws = new WebSocket('ws://106.14.237.165/websocket');
                 this.ws.sendEvent = this.sendEvent;
                 this.ws.connectBench = this.connectBench.bind(this.ws)
                 this.ws.getImage = this.getImage.bind(this.ws)

+ 3 - 3
src/views/ordinaryPage/index.vue

@@ -27,9 +27,9 @@
                 class="grid-item-background"
                 style="
                   background-color: black;
-                  padding-top: 30px;
-                  padding-bottom: 30px;
-                  padding-left: 5px;
+                  padding-top: 35px;
+                  padding-bottom: 25px;
+                  padding-left: 9px;
                   padding-right: 5px;
                   margin: 10px;
                   border-radius: 20px;