Selaa lähdekoodia

电视墙左侧树自定义

wang_xy 2 vuotta sitten
vanhempi
commit
24b191daa4
1 muutettua tiedostoa jossa 5 lisäystä ja 12 poistoa
  1. 5 12
      src/components/TVWall.vue

+ 5 - 12
src/components/TVWall.vue

@@ -368,7 +368,6 @@ export default {
     },
 
     create(tvListJson) { // 调用创建控件接口
-      debugger
       let _this = this
       const params = [
         {
@@ -388,17 +387,11 @@ 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)