From ea4cf388b11923ae181f17661aae71c0b95fecd5 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期五, 14 八月 2020 12:00:50 +0800
Subject: [PATCH] 添加底库样式调整,跳转及关闭窗口同步高亮处理

---
 src/pages/desktop/index/store/modules/desktop.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/pages/desktop/index/store/modules/desktop.js b/src/pages/desktop/index/store/modules/desktop.js
index cfb3747..dd4abc1 100644
--- a/src/pages/desktop/index/store/modules/desktop.js
+++ b/src/pages/desktop/index/store/modules/desktop.js
@@ -177,6 +177,7 @@
     state.notificationCenterVisible = visible;
   },
   closeFrame: (state, item) => {
+    
     state.frames.find(function (it, idx) {
       if (it.id === item.id) {
         state.frames.splice(idx, 1);
@@ -191,6 +192,7 @@
       }
       return false;
     });
+    
     state.docks.find(function (it) {
       if (it.id === item.id) {
         it.isOpen = false;
@@ -202,6 +204,17 @@
       state.safari.active = false;
     }
   },
+  highlight(state){
+    //鎵惧埌minDocks鏈�杩戞墦寮�鐨勭姸鎬乮sShow涓簍rue鐨刣ock缃负楂樹寒
+    let minLen = state.minDocks.length;
+    for(var i = minLen-1; i >= 0; i--){
+      let temp =  state.frames.find(frame=>frame.id == state.minDocks[i].id);
+      if(temp.isShow){
+        state.minDocks[i].highlight = true;
+        return;
+      }
+    }
+  },
   openSafari: (state) => {
     state.safari.active = true;
     state.safari.isShow = true;

--
Gitblit v1.8.0