This commit is contained in:
liuye
2021-12-23 18:54:49 +08:00
parent 0a5e7d4a2b
commit e749992961
4 changed files with 144 additions and 32 deletions

View File

@@ -100,14 +100,14 @@ export default {
getType() {
this.$http.post(`/app/appcontentmoduleinfo/listByName?names=${this.listName}`).then((res) => {
if (res.code == 0) {
if(res.data && res.data[0].categoryList.length) {
if(res.data && res.data.length) {
this.selectList = res.data[0].categoryList
this.selectList.map((item, index) => {
item.selectIndex = index
})
if(this.id) {
this.getDetail()
}
}
if(this.id) {
this.getDetail()
}
}
})
@@ -132,7 +132,6 @@ export default {
})
}
console.log(222)
var categoryId = '', categoryName = ''
if(this.selectList.length) {
@@ -147,7 +146,7 @@ export default {
id: this.id,
moduleId: this.moduleId,
categoryId: categoryId,
categoryName: categoryName,
categoryName: categoryName,
})
.then((res) => {
console.log(333)