hanbaoshan
2020-08-04 f35be1c7fbfc3b121ac68e88629a500af0b1a782
src/pages/desktop/index/components/ToolsEntry.vue
@@ -29,21 +29,28 @@
    }
  },
  methods: {
    dockClick(dock) {
      debugger
      if (dock.type === '1') {
        window.open(dock.url);
      } else if (dock.type === '2') {
        debugger
      } else if (dock.type === '2' && !dock.isOpen) {
        this.$store.dispatch('desktop/addFrame', {
          id: dock.id,
          icon: dock.src,
          title: dock.name,
          url: dock.url
        });
      } else if (dock.type === '3') {
        debugger
        this.$store.commit('desktop/addMinDock', {
          id: dock.id,
          src: dock.src,
          alt: dock.title,
          type: "3",
          highlight: true,
          isOpen: dock.isOpen
        });
      } else if (dock.type === '2' && dock.isOpen) {
        this.$store.commit('desktop/resetMinFrame', dock.id);
        this.resetDockItem();
      }
    },
    resetDockItem() {