bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user