From fba6d237c8542f8df9d214141f074c93584ab9e5 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期五, 14 八月 2020 15:13:31 +0800
Subject: [PATCH] 数据栈上传

---
 src/pages/desktop/index/components/ToolsEntry.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/pages/desktop/index/components/ToolsEntry.vue b/src/pages/desktop/index/components/ToolsEntry.vue
index c6c4b2e..5bc5d61 100644
--- a/src/pages/desktop/index/components/ToolsEntry.vue
+++ b/src/pages/desktop/index/components/ToolsEntry.vue
@@ -16,11 +16,15 @@
           </div>
         </div>
       </div>
+      <div class="logo">
+        <img :src="`${publicPath}images/desktop/desk-logo.png`" alt="">
+      </div>
     </div>
   </div>
 </template>
 
 <script>
+
 export default {
   name: 'toolsEntry',
   data() {
@@ -57,13 +61,14 @@
           title: dock.title,
           url: dock.url
         });
-        debugger
         this.$store.commit('desktop/addMinDock', {
           id: dock.id,
           src: dock.src,
           alt: dock.title,
           type: "3",
           highlight: true,
+          url: dock.url,
+          screenshot: ''
         });
       } else if (dock.type === '2' && dock.isOpen) {
         this.$store.commit('desktop/resetMinFrame', dock.id);
@@ -81,6 +86,7 @@
       dockMask.style.width = dockItems.length * 60 + 40 + 'px';
     },
     addFrameByName(name, params) {
+      debugger
       let dock = null;
       this.$store.state.desktop.docks.forEach(app => {
         if (app.name === name) {
@@ -96,6 +102,15 @@
         icon: dock.src,
         title: dock.title,
         url: dock.url + "?" + params
+      });
+      this.$store.commit('desktop/addMinDock', {
+        id: dock.id,
+        src: dock.src,
+        alt: dock.title,
+        type: "3",
+        highlight: true,
+        url: dock.url,
+        screenshot: ''
       });
     }
   }
@@ -145,6 +160,10 @@
         }
       }
     }
+    .logo{
+      text-align: right;
+      padding-right: 50px;
+    }
   }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0