| | |
| | | <template> |
| | | <div id="app" @contextmenu.prevent> |
| | | <tools @jumpToDock="onJumpToDock"></tools> |
| | | <desktop></desktop> |
| | | <desktop ref="desktop"></desktop> |
| | | <tools-entry @changeBackground="onChangeBg" ref="dock_model"></tools-entry> |
| | | <notice-tip ref="notice_tip_model"></notice-tip> |
| | | <notification-center></notification-center> |
| | |
| | | // document.getElementById('app').style.backgroundImage = process.env.VUE_APP_MAIN_URL; |
| | | const url = localStorage.getItem("backgroundPic") |
| | | document.getElementById('app').style.backgroundImage = `url(${url||this.defaultBgUrl})` |
| | | |
| | | this.showApps(); |
| | | |
| | | let _that = this; |
| | | let msgResp = require("./mock/messages.json") |
| | | if (msgResp.success) { |
| | |
| | | _that.addMessage(item); |
| | | }) |
| | | } |
| | | |
| | | let weather = require("./mock/weather.json") |
| | | if (weather.success) { |
| | | _that.addWeather(weather.data.data); |
| | |
| | | if (e.data.msg == 'AppUpdate') { |
| | | this.showApps(); |
| | | } |
| | | if (e.data.msg=='checkSN') { |
| | | debugger |
| | | this.$refs.desktop.validateSn() |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |