| | |
| | | import { getApps } from '@/api/app' |
| | | import { findAllSdk } from '@/api/taskMange' |
| | | |
| | | import config from '../../../../package.json' |
| | | |
| | | export default { |
| | | name: 'app', |
| | | components: { |
| | |
| | | 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(); |
| | | } |
| | | }); |
| | |
| | | if (rsp && rsp.success) { |
| | | _that.$store.state.desktop.docks = []; |
| | | let installedApps = []; |
| | | rsp.data |
| | | rsp.data.forEach(function (item) { |
| | | if (item.installed) { |
| | | let temp = { |