zhangzengfei
2020-08-04 20edbbb796f386465c0e703be0f1b602c02a5470
src/pages/desktop/index/components/ToolsEntry.vue
@@ -29,21 +29,23 @@
    }
  },
  methods: {
    dockClick(dock) {
      if (dock.type === '1') {
        window.open(dock.url);
      } else if (dock.type === '2') {
        debugger
        this.$store.dispatch('desktop/addFrame', {
        let ids = this.$store.getters["desktop/frames"].map(item => item.id);
        if (ids.indexOf(dock.id) > -1) {
          this.$store.commit('desktop/resetMinFrame', dock.id);
          this.resetDockItem();
          return;
        }
        let ret = this.$store.dispatch('desktop/addFrame', {
          id: dock.id,
          icon: dock.src,
          title: dock.name,
          url: dock.url
        });
      } else if (dock.type === '3') {
        this.$store.commit('desktop/resetMinFrame', dock.id);
        this.resetDockItem();
      }
    },
    resetDockItem() {