all
heyujie
2021-07-21 b5e2e236828b7fbc0e8f2bdbf66651ad8907e3b1
src/pages/desktop/index/components/ToolsEntry.vue
@@ -107,6 +107,7 @@
  mounted() {
    this.getAllSdk();
    //this.carousels = 
    let _this= this
    window.addEventListener('message', e => {
      if (e.data && e.data.msg) {
        let msg = e.data.msg;
@@ -129,6 +130,12 @@
          console.log(id);
          this.addFrameByID(id)
        }
        if (msg.indexOf("changeBackground")>-1) {
        const name = e.data.msg.split("?")[1]
        debugger
        _this.$emit("changeBg", `/images/desktop/${name}.png`)
      }
      }
    });
@@ -148,6 +155,19 @@
      }
      return result
    },
    onJumpToDock(name){
      debugger
      let togo
      this.carousels.forEach(arr => {
        arr.forEach(x => {
          if (x.title==name) {
            togo= x
          }
        });
      });
      this.dockClick(togo)
    },
    getAllSdk() {
      findAllSdk().then(res => {
        this.installedSdk = res.data.filter(item => item.installed)