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 |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/pages/desktop/index/components/ToolsEntry.vue b/src/pages/desktop/index/components/ToolsEntry.vue
index b343653..5bc5d61 100644
--- a/src/pages/desktop/index/components/ToolsEntry.vue
+++ b/src/pages/desktop/index/components/ToolsEntry.vue
@@ -24,6 +24,7 @@
 </template>
 
 <script>
+
 export default {
   name: 'toolsEntry',
   data() {
@@ -60,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);
@@ -84,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) {
@@ -100,6 +103,15 @@
         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: ''
+      });
     }
   }
 };

--
Gitblit v1.8.0