图层更改

qianlishi 3 years ago
parent 08451d381e
commit 00052fd175

@ -705,15 +705,15 @@ export default {
}, },
// //
istopLayer() { istopLayer() {
if (this.rightClickIndex != 0) { if (this.rightClickIndex + 1 < this.widgets.length) {
this.widgets.unshift(this.widgets.splice(this.rightClickIndex, 1)[0]); const temp = this.widgets.splice(this.rightClickIndex, 1)[0];
this.widgets.push(temp);
} }
}, },
// //
setlowLayer() { setlowLayer() {
if (this.rightClickIndex + 1 < this.widgets.length) { if (this.rightClickIndex != 0) {
const temp = this.widgets.splice(this.rightClickIndex, 1)[0]; this.widgets.unshift(this.widgets.splice(this.rightClickIndex, 1)[0]);
this.widgets.push(temp);
} }
}, },
// //

Loading…
Cancel
Save