bug
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
<u-form-item label="图片(最多9张)" prop="files" class="avatars" label-position="top">
|
||||
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9"
|
||||
action="/admin/file/add2"></AiUploader>
|
||||
action="/admin/file/add2" v-if="!isHideCoverimg"></AiUploader>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</div>
|
||||
@@ -64,7 +64,8 @@ export default {
|
||||
areaIdProps: '',
|
||||
moduleId: '',
|
||||
listName: '',
|
||||
selectList: []
|
||||
selectList: [],
|
||||
isHideCoverimg: false
|
||||
}
|
||||
},
|
||||
computed: {...mapState(['user'])},
|
||||
@@ -79,6 +80,7 @@ export default {
|
||||
}
|
||||
this.listName = o.listName
|
||||
this.getType()
|
||||
this.getModuleInfo()
|
||||
},
|
||||
onShow() {
|
||||
document.title = this.listName
|
||||
@@ -87,6 +89,13 @@ export default {
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
getModuleInfo () {
|
||||
this.instance.post(`/app/appcontentmoduleinfo/queryDetailById?id=${this.$route.query.moduleId}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.isHideCoverimg = res.data.styleType === '0'
|
||||
}
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user