| | |
| | | </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() {
|
| | |
| | | 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);
|
| | |
| | | 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) {
|
| | |
| | | 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: ''
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | .logo{
|
| | | text-align: right;
|
| | | padding-right: 50px;
|
| | | }
|
| | | }
|
| | | }
|
| | | </style> |