Commit 223abf0d authored by 黄奎's avatar 黄奎
parents d69d12dd 292a2129
...@@ -458,6 +458,7 @@ ...@@ -458,6 +458,7 @@
this.currentEditItemData = JSON.parse(JSON.stringify(item.plugData)); this.currentEditItemData = JSON.parse(JSON.stringify(item.plugData));
if(!this.currentEditItemData.BottomList) this.$set(this.currentEditItemData,'BottomList',[]) if(!this.currentEditItemData.BottomList) this.$set(this.currentEditItemData,'BottomList',[])
if(!this.currentEditItemData.MBgColor) this.$set(this.currentEditItemData,'MBgColor','') if(!this.currentEditItemData.MBgColor) this.$set(this.currentEditItemData,'MBgColor','')
if(!this.currentEditItemData.MLogo) this.$set(this.currentEditItemData,'MLogo','')
}, },
//获取数据 //获取数据
setSubPlugData() { setSubPlugData() {
......
...@@ -395,10 +395,10 @@ ...@@ -395,10 +395,10 @@
//一级菜单 //一级菜单
this.plugData.MenuList.push(JSON.parse(JSON.stringify(this.MenuList))) this.plugData.MenuList.push(JSON.parse(JSON.stringify(this.MenuList)))
} else if (type == 2) { } else if (type == 2) {
//二级菜单 //二级菜单
this.plugData.MenuList[index].SubMenuList.push(JSON.parse(JSON.stringify(this.SubMenuList))) this.plugData.MenuList[index].SubMenuList.push(JSON.parse(JSON.stringify(this.SubMenuList)))
} else if (type == 3) { } else if (type == 3) {
//底部导航 //底部导航
this.plugData.BottomList.push(JSON.parse(JSON.stringify(this.BottomList))) this.plugData.BottomList.push(JSON.parse(JSON.stringify(this.BottomList)))
} }
}, },
...@@ -411,11 +411,11 @@ ...@@ -411,11 +411,11 @@
if (type == 1) { if (type == 1) {
that.plugData.MenuList.splice(index, 1) that.plugData.MenuList.splice(index, 1)
} }
//二级菜单 //二级菜单
else if (type == 2) { else if (type == 2) {
that.plugData.MenuList[index].SubMenuList.splice(i, 1) that.plugData.MenuList[index].SubMenuList.splice(i, 1)
} }
//底部导航 //底部导航
else if (type == 3) { else if (type == 3) {
that.plugData.BottomList.splice(i, 1) that.plugData.BottomList.splice(i, 1)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment