From 1e1e5f612f252d66b0d0386cf52873bb1f3f7d7b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 01 九月 2023 16:10:37 +0800
Subject: [PATCH] 系统维护+系统监控器+调试工具的app 增加

---
 src/pages/desktop/index/App.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/pages/desktop/index/App.vue b/src/pages/desktop/index/App.vue
index b90ac81..4d521fd 100644
--- a/src/pages/desktop/index/App.vue
+++ b/src/pages/desktop/index/App.vue
@@ -20,6 +20,8 @@
 import { getApps } from '@/api/app'
 import { findAllSdk } from '@/api/taskMange'
 
+import config from '../../../../package.json'
+
 export default {
   name: 'app',
   components: {
@@ -65,14 +67,13 @@
         id: 'N2',
         icon: '/images/desktop/message.png',
         tip: '娑堟伅',
-        title: 'SmartAi',
-        body: 'v1.0.0',
+        title: 'SmartAI',
+        body: 'V' + config.version,
         time: new Date()
       }, true);
     }, 1000);
     window.addEventListener('message', (e) => {
       if (e.data.msg == 'AppUpdate') {
-        console.log('搴旂敤鏇存柊')
         this.showApps();
       }
     });
@@ -85,6 +86,7 @@
         if (rsp && rsp.success) {
           _that.$store.state.desktop.docks = [];
           let installedApps = [];
+          rsp.data
           rsp.data.forEach(function (item) {
             if (item.installed) {
               let temp = {
@@ -108,7 +110,7 @@
                 width: item.width,
                 isDefault: item.isDefault
               }
-
+              
               // 鍒ゆ柇鏉冮檺
               if (_that.isAdmin || _that.buttonAuthority.indexOf(item.package) >= 0) {
                 _that.$store.commit('desktop/addDock', temp);

--
Gitblit v1.8.0