Commit 4d9eafcd authored by 王's avatar

公众号菜单media_id save

parent 4ee498c0
......@@ -1010,7 +1010,7 @@
let _type = this.buttonList[this.selectedIndex].media_info.type;
this.buttonList[this.selectedIndex].media_id = '';
if (_type === 'image') {
this.buttonList[this.selectedIndex].media_info.url = '';
this.buttonList[this.selectedIndex].media_info.content = '';
} else if (_type === 'text'){
} else {
......@@ -1022,12 +1022,13 @@
this.$forceUpdate();
},
deleteSubMedia(){
console.log('deleteSubMedia')
let selectedIndex = this.selectedIndex;
let selectedChildIndex = this.selectedChildIndex;
let _type = this.buttonList[selectedIndex].sub_button[selectedChildIndex].media_info.type;
this.buttonList[selectedIndex].sub_button[selectedChildIndex].media_id = '';
if (_type === 'image') {
this.buttonList[selectedIndex].sub_button[selectedChildIndex].media_info.url = '';
this.buttonList[selectedIndex].sub_button[selectedChildIndex].media_info.content = '';
} else if (_type === 'text'){
this.buttonList[selectedIndex].sub_button[selectedChildIndex].media_info.content = '';
} else {
......
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