|
|
|
@ -131,6 +131,14 @@ export default {
|
|
|
|
async sync() {
|
|
|
|
async sync() {
|
|
|
|
await this.$store.dispatch("app/setLayout")
|
|
|
|
await this.$store.dispatch("app/setLayout")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$store.dispatch('app/getLayout').then(res => {
|
|
|
|
|
|
|
|
this.layoutList = res.map(item => {
|
|
|
|
|
|
|
|
layout.forEach(lay => {
|
|
|
|
|
|
|
|
lay.i === item.i ? item.component = lay.component : ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return item
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
save(){
|
|
|
|
save(){
|
|
|
|
let layout = this.layoutList.map(item => {
|
|
|
|
let layout = this.layoutList.map(item => {
|
|
|
|
|