diff --git a/src/apps/AppServicePublic/Add.vue b/src/apps/AppServicePublic/Add.vue index 5dfc27e2..d70994a1 100644 --- a/src/apps/AppServicePublic/Add.vue +++ b/src/apps/AppServicePublic/Add.vue @@ -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) diff --git a/src/apps/AppServicePublic/AppServicePublic.vue b/src/apps/AppServicePublic/AppServicePublic.vue index 7dde3404..27564bcb 100644 --- a/src/apps/AppServicePublic/AppServicePublic.vue +++ b/src/apps/AppServicePublic/AppServicePublic.vue @@ -10,30 +10,26 @@
区域选择
- - - +