Commit 979422c7 by 杨北旺

修复bug

1 parent 5d7983cf
...@@ -106,9 +106,7 @@ export default { ...@@ -106,9 +106,7 @@ export default {
components: {}, components: {},
mounted() { mounted() {},
console.log(util.dateFormat(1702518870000))
},
methods: { methods: {
topClass(id) { topClass(id) {
...@@ -118,6 +116,8 @@ export default { ...@@ -118,6 +116,8 @@ export default {
addClass(type, row) { addClass(type, row) {
this.isVisible = true this.isVisible = true
this.modalTitle = type == 2 ? '编辑' : '新增' this.modalTitle = type == 2 ? '编辑' : '新增'
this.editId = null
this.topId = null
if (type == 2) { if (type == 2) {
this.categoryName = row.categoryName this.categoryName = row.categoryName
this.editId = row.id this.editId = row.id
......
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
} }
this.$refs.textBox.setEdit(res.content) this.$refs.textBox.setEdit(res.content)
this.formObj.coverArr = res.strategyImg ? [res.strategyImg] : [] this.formObj.coverArr = res.strategyImg ? [res.strategyImg] : []
this.formObj.categoryId = res.categoryId
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!