调整大屏列表逻辑

This commit is contained in:
zyy 2020-08-03 15:31:53 +08:00
parent c9fc984bc9
commit 8422889940

View File

@ -174,6 +174,7 @@ export default {
height: data.height height: data.height
}; };
} }
data.offsetList.length = data.bigScreenSplitConfig.length + 1;
if (data.offsetList && data.offsetList.length) { if (data.offsetList && data.offsetList.length) {
this.list = []; this.list = [];
data.offsetList.forEach(item => { data.offsetList.forEach(item => {
@ -189,6 +190,7 @@ export default {
}, },
deleteModel(list, index) { deleteModel(list, index) {
list.splice(index, 1); list.splice(index, 1);
this.list.pop();
this.clear(); this.clear();
this.cardMode = 'generate'; this.cardMode = 'generate';
}, },