فهرست منبع

电视墙左侧树自定义

wang_xy 2 سال پیش
والد
کامیت
00465b303d
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)