修改安全、质量隐患

This commit is contained in:
”Rain“ 2024-05-27 16:09:53 +08:00
parent 686cf0b04d
commit 1158fc557b
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
</view>
<view class="uni-form-item">
<view class="uni-form-label">
<text class="star">*</text>附件
<text class="star" v-if="type == 1">*</text>附件
</view>
<view class="uni-form-input imgBox_wrap">
<view class="imgBox" v-show="fileList.length>0" v-for="(item,index) in fileList" :key="index">
@ -278,7 +278,7 @@ import dateTimePiccker from '@/components/dateTimePicker/index.vue'
})
return
}
if (this.fileList.length == 0) {
if (this.fileList.length == 0 && this.type == 1) {
uni.showToast({
title: "请上传附件",
icon: "none"

View File

@ -50,7 +50,7 @@
</view>
<view class="uni-form-item">
<view class="uni-form-label">
<text class="star">*</text>附件
<text class="star" v-if="type == 1">*</text>附件
</view>
<view class="uni-form-input imgBox_wrap">
<view class="imgBox" v-show="fileList.length>0" v-for="(item,index) in fileList" :key="index">
@ -278,7 +278,7 @@ import dateTimePiccker from '@/components/dateTimePicker/index.vue'
})
return
}
if (this.fileList.length == 0) {
if (this.fileList.length == 0 && this.type == 1) {
uni.showToast({
title: "请上传附件",
icon: "none"