|
@@ -92,7 +92,7 @@ export default {
|
92
|
92
|
console.log('检查修改')
|
93
|
93
|
this.$Modal.confirm({
|
94
|
94
|
title: '警告',
|
95
|
|
- content: `<p style='font-size:18px;'>您已编辑过此菜单,确认放弃编辑?<p>`,
|
|
95
|
+ content: `<p style='font-size:16px;'>您已编辑过此菜单,确认放弃编辑?<p>`,
|
96
|
96
|
onOk: () => {
|
97
|
97
|
this.formActive = false
|
98
|
98
|
this.hasContent = hasContent
|
|
@@ -115,16 +115,19 @@ export default {
|
115
|
115
|
checkForm (data) {
|
116
|
116
|
if (this.chooseTag.type === 0) {
|
117
|
117
|
this.addMainMenu(data)
|
|
118
|
+ this.clear({ type: 0 })
|
118
|
119
|
} else if (this.chooseTag.type === 1) {
|
119
|
120
|
this.setMainMenu(data, this.chooseTag.index)
|
|
121
|
+ this.clear({ type: 1, index: this.chooseTag.index })
|
120
|
122
|
} else if (this.chooseTag.type === 2) {
|
121
|
123
|
this.addSubMenu(data, this.chooseTag.parentIndex)
|
|
124
|
+ this.clear({ type: 2, parentIndex: this.chooseTag.parentIndex })
|
122
|
125
|
} else if (this.chooseTag.type === 3) {
|
123
|
126
|
this.setSubMenu(data, this.chooseTag.index, this.chooseTag.parentIndex)
|
|
127
|
+ this.clear({ type: 3, index: this.chooseTag.index, parentIndex: this.chooseTag.parentIndex })
|
124
|
128
|
}
|
125
|
129
|
this.Changed(false)
|
126
|
130
|
this.$Message.success('设置成功')
|
127
|
|
- this.clear()
|
128
|
131
|
// this.formActive = false
|
129
|
132
|
},
|
130
|
133
|
addMainMenuClick () {
|
|
@@ -222,7 +225,7 @@ export default {
|
222
|
225
|
if (this.changed) {
|
223
|
226
|
this.$Modal.confirm({
|
224
|
227
|
title: '警告',
|
225
|
|
- content: `<p style='font-size:18px;'>当前编辑的菜单未保存,若确认发布,当前未保存菜单不会生效,是否确认发布?<p>`,
|
|
228
|
+ content: `<p style='font-size:16px;'>当前编辑的菜单未保存,若确认发布,当前未保存菜单不会生效,是否确认发布?<p>`,
|
226
|
229
|
onOk: () => {
|
227
|
230
|
this.setWechatMenu().then(() => {
|
228
|
231
|
this.$Message.success('发布成功')
|