| | |
| | | mounted() {
|
| | | this.getAllSdk();
|
| | | //this.carousels =
|
| | | let _this= this
|
| | | window.addEventListener('message', e => {
|
| | | if (e.data && e.data.msg) {
|
| | | let msg = e.data.msg;
|
| | |
| | | console.log(id);
|
| | | this.addFrameByID(id)
|
| | | }
|
| | |
|
| | | if (msg.indexOf("changeBackground")>-1) {
|
| | | const name = e.data.msg.split("?")[1]
|
| | | debugger
|
| | | _this.$emit("changeBg", `/images/desktop/${name}.png`)
|
| | | }
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | }
|
| | | return result
|
| | | },
|
| | | onJumpToDock(name){
|
| | | debugger
|
| | |
|
| | | let togo |
| | | this.carousels.forEach(arr => {
|
| | | arr.forEach(x => {
|
| | | if (x.title==name) {
|
| | | togo= x
|
| | | }
|
| | | });
|
| | | });
|
| | | this.dockClick(togo)
|
| | | },
|
| | | getAllSdk() {
|
| | | findAllSdk().then(res => {
|
| | | this.installedSdk = res.data.filter(item => item.installed)
|