he wei
2022-09-27 23786b9ef2dc1d9f06dd7d9458e926369aab8c25
src/components/menuList.vue
@@ -134,15 +134,20 @@
    },
    openFile() {
      // console.log("openfile");
      window.api.send("open-file-dialog");
      window.api.send("open-file-dialog", 'MenuList');
    },
    closeFile() {
      this.$bus.$emit('closeFile');
    },
    closeAllFiles() {
      this.$bus.$emit('closeAll');
    },
    initEvents() {
      window.api.receive("selected-file", (path) => {
        console.log(path.filePaths);
      window.api.receive("selected-file", (path, data) => {
        if (data && data == 'MenuList') {
          console.log(path.filePaths, 'MenuList');
        }
        // this.path = path.filePaths;
      });
      window.api.receive("selected-directory", (path) => {
        console.log(path.filePaths);
      });
    },
  },
@@ -165,12 +170,12 @@
    .title {
      cursor: pointer;
      border: 1px solid #333;
      background: #fbfbfb;
      background: #0DCED1;
      line-height: 30px;
      border-radius: 4px;
      vertical-align: middle;
      &.active {
        background: #169bd5;
        background: #00f7f9;
      }
      &:hover {
        background: #62cbfa;
@@ -185,11 +190,11 @@
    left: 0;
    top: 100%;
    min-width: 8em;
    background: #f0f0f0;
    background: #c0c0c0;
    padding: 4px;
    .sub-li {
      border-radius: 4px;
      border: 1px #333 solid;
      border: 1px #fff solid;
      background: #d9dce2;
      &:hover {
        background: #169bd5;