From 23786b9ef2dc1d9f06dd7d9458e926369aab8c25 Mon Sep 17 00:00:00 2001
From: he wei <858544502@qq.com>
Date: 星期二, 27 九月 2022 16:13:24 +0800
Subject: [PATCH] UA 整理提交  准备修改标签

---
 src/components/menuList.vue |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/components/menuList.vue b/src/components/menuList.vue
index 24d181c..46aae49 100644
--- a/src/components/menuList.vue
+++ b/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;

--
Gitblit v1.9.1