彭宇 %!s(int64=2) %!d(string=hai) anos
pai
achega
3ec0b5da3d
Modificáronse 1 ficheiros con 4 adicións e 11 borrados
  1. 4 11
      src/components/TVWall.vue

+ 4 - 11
src/components/TVWall.vue

@@ -388,17 +388,10 @@ export default {
         }
         }
       ]
       ]
       this.setPos()
       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() {
     setPos() {
       let target = document.getElementById(this.domId)
       let target = document.getElementById(this.domId)