From 96eae682c0be348e6803ec3734fbc5656a06d804 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 22 Dec 2021 11:21:25 +0800 Subject: [PATCH] 25576 --- packages/3.0.0/AppContentInfo/components/Add.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) {