diff --git a/packages/3.0.0/AppContentInfo/components/Add.vue b/packages/3.0.0/AppContentInfo/components/Add.vue index edf13541..6e6f2bf3 100644 --- a/packages/3.0.0/AppContentInfo/components/Add.vue +++ b/packages/3.0.0/AppContentInfo/components/Add.vue @@ -44,6 +44,9 @@ fileType="img" acceptType=".jpg,.png,.jpeg" :limit="9"> + @@ -88,8 +91,7 @@ props: { instance: Function, dict: Object, - params: Object, - moduleId: String + params: Object }, data () { @@ -173,7 +175,7 @@ moduleId: this.$route.query.moduleId, createUserName: this.user.info.name, createUserId: this.user.info.id, - categoryName: this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName, + categoryName: this.cateList.length ? this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName : '', pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : '' }).then(res => { if (res.code == 0) {