瀏覽代碼

电视墙

彭宇 2 年之前
父節點
當前提交
3ec0b5da3d
共有 1 個文件被更改,包括 4 次插入11 次删除
  1. 4 11
      src/components/TVWall.vue

+ 4 - 11
src/components/TVWall.vue

@@ -388,17 +388,10 @@ export default {
         }
       ]
       this.setPos()
-      _this.ws.createCtrl(params).then(res => {
-        this.customizeTree(tvListJson)
-      }).catch(e => {
-        console.log(e)
-      })
-      _this.ws.on('createCtrlResult', (res) => {
-        this.customizeTree(tvListJson)
-        _this.ws.on('createCtrlResult', (res) => {
-          this.customizeTree(tvListJson)
-        })
-      })
+      this.customizeTree(tvListJson);
+      setTimeout(function () {
+        _this.ws.createCtrl(params);
+      }, 3000);
     },
     setPos() {
       let target = document.getElementById(this.domId)