| | |
| | | </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) {
|
| | |
| | | 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: ''
|
| | | });
|
| | | }
|
| | | }
|
| | | };
|